mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Disambiguate instruction size for mov in read_gs_ptr
Previously we allowed using immediate values here which is ambiguous as to which specific mov instruction the compiler should choose.
This commit is contained in:
parent
8545bd5fdb
commit
9964c106ad
Notes:
sideshowbarker
2024-07-18 07:07:16 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/9964c106ad5 Pull-request: https://github.com/SerenityOS/serenity/pull/9335
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ ALWAYS_INLINE FlatPtr read_gs_ptr(FlatPtr offset)
|
|||
ALWAYS_INLINE void write_gs_ptr(u32 offset, FlatPtr val)
|
||||
{
|
||||
asm volatile(
|
||||
"mov %[val], %%gs:%a[off]" ::[off] "ir"(offset), [val] "ir"(val)
|
||||
"mov %[val], %%gs:%a[off]" ::[off] "ir"(offset), [val] "r"(val)
|
||||
: "memory");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue