projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: fixup numa 64 namespace
[powerpc.git]
/
include
/
asm-x86
/
system_32.h
diff --git
a/include/asm-x86/system_32.h
b/include/asm-x86/system_32.h
index
d84e593
..
db6283e
100644
(file)
--- a/
include/asm-x86/system_32.h
+++ b/
include/asm-x86/system_32.h
@@
-142,7
+142,7
@@
static inline unsigned long native_read_cr4_safe(void)
{
unsigned long val;
/* This could fault if %cr4 does not exist */
{
unsigned long val;
/* This could fault if %cr4 does not exist */
- asm
("1: movl %%cr4, %0
\n"
+ asm
volatile("1: movl %%cr4, %0
\n"
"2: \n"
".section __ex_table,\"a\" \n"
".long 1b,2b \n"
"2: \n"
".section __ex_table,\"a\" \n"
".long 1b,2b \n"
@@
-161,6
+161,10
@@
static inline void native_wbinvd(void)
asm volatile("wbinvd": : :"memory");
}
asm volatile("wbinvd": : :"memory");
}
+static inline void clflush(volatile void *__p)
+{
+ asm volatile("clflush %0" : "+m" (*(char __force *)__p));
+}
#ifdef CONFIG_PARAVIRT
#include <asm/paravirt.h>
#ifdef CONFIG_PARAVIRT
#include <asm/paravirt.h>