mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +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
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…
Add table
Add a link
Reference in a new issue