mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
Kernel: Let's have cli() and sti() clobber memory.
I don't like the idea of the compiler reordering anything around either cli() or sti(), so let's make sure it doesn't.
This commit is contained in:
parent
e2f27aa7b5
commit
c63d476da2
1 changed files with 2 additions and 2 deletions
|
@ -79,8 +79,8 @@ void write_gdt_entry(word selector, Descriptor&);
|
|||
#define LSB(x) ((x) & 0xFF)
|
||||
#define MSB(x) (((x)>>8) & 0xFF)
|
||||
|
||||
#define cli() asm volatile("cli")
|
||||
#define sti() asm volatile("sti")
|
||||
#define cli() asm volatile("cli" ::: "memory")
|
||||
#define sti() asm volatile("sti" ::: "memory")
|
||||
#define memory_barrier() asm volatile ("" ::: "memory")
|
||||
|
||||
inline dword cpu_cr3()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue