diff --git a/Kernel/Arch/x86/ASM_wrapper.h b/Kernel/Arch/x86/ASM_wrapper.h index 1df759d7a09..9bb508d515b 100644 --- a/Kernel/Arch/x86/ASM_wrapper.h +++ b/Kernel/Arch/x86/ASM_wrapper.h @@ -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"); }