[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-commits
Subject:    [haiku-commits] haiku: hrev53914 - headers/private/kernel/arch/x86
From:       waddlesplash <waddlesplash () gmail ! com>
Date:       2020-02-25 4:43:46
Message-ID: 20200225044346.76EBA24279 () turing ! freelists ! org
[Download RAW message or body]

hrev53914 adds 1 changeset to branch 'master'
old head: f9b0390d8f87dad87ef57f0d81edf1248e5a3310
new head: 84195a491f613d96cb23b56782a5e5eab6ebb450
overview: https://git.haiku-os.org/haiku/log/?qt=range&q=84195a491f61+%5Ef9b0390d8f87

----------------------------------------------------------------------------

84195a491f61: 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 <pulkomandy@gmail.com>

                                   [ Jérôme Duval <jerome.duval@gmail.com> ]

----------------------------------------------------------------------------

Revision:    hrev53914
Commit:      84195a491f613d96cb23b56782a5e5eab6ebb450
URL:         https://git.haiku-os.org/haiku/commit/?id=84195a491f61
Author:      Jérôme Duval <jerome.duval@gmail.com>
Date:        Sun Feb 23 15:21:51 2020 UTC
Committer:   waddlesplash <waddlesplash@gmail.com>
Commit-Date: Tue Feb 25 04:43:41 2020 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
headers/private/kernel/arch/x86/arch_cpu.h | 2 +-

----------------------------------------------------------------------------

diff --git a/headers/private/kernel/arch/x86/arch_cpu.h b/headers/private/kernel/arch/x86/arch_cpu.h
index 3748aef156..ed59e3ca29 100644
--- a/headers/private/kernel/arch/x86/arch_cpu.h
+++ b/headers/private/kernel/arch/x86/arch_cpu.h
@@ -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")


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic