kernel/x86: add a compiler level memory barrier to wbinvd
Change-Id: Id96e37b83110f413a2b30f2967921ce90f31dd94 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2272 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
f9b0390d8f
commit
84195a491f
@@ -496,7 +496,7 @@ typedef struct arch_cpu_info {
|
||||
__asm__("invlpg (%0)" : : "r" (va))
|
||||
|
||||
#define wbinvd() \
|
||||
__asm__("wbinvd")
|
||||
__asm__ volatile ("wbinvd" : : : "memory")
|
||||
|
||||
#define set_ac() \
|
||||
__asm__ volatile (ASM_STAC : : : "memory")
|
||||
|
||||
Reference in New Issue
Block a user