X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-x86%2Fsystem_32.h;h=db6283eb5e46d6f53ff24d33b0a5ec091e5a9fd0;hb=7462894a7cb03b54b9139f31fab5928366752a78;hp=d84e593b7dfc69645240040432eab4e3398d3af8;hpb=5c8e191e8437616a498a8e1cc0af3dd0d32bbff2;p=powerpc.git diff --git a/include/asm-x86/system_32.h b/include/asm-x86/system_32.h index d84e593b7d..db6283eb5e 100644 --- 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 */ - asm("1: movl %%cr4, %0 \n" + asm volatile("1: movl %%cr4, %0 \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"); } +static inline void clflush(volatile void *__p) +{ + asm volatile("clflush %0" : "+m" (*(char __force *)__p)); +} #ifdef CONFIG_PARAVIRT #include