diff options
Diffstat (limited to 'arch/x86/include/asm/cache.h')
| -rw-r--r-- | arch/x86/include/asm/cache.h | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/arch/x86/include/asm/cache.h b/arch/x86/include/asm/cache.h index 87c9e0be4..d4678d491 100644 --- a/arch/x86/include/asm/cache.h +++ b/arch/x86/include/asm/cache.h @@ -32,4 +32,20 @@  #define ARCH_DMA_MINALIGN	64  #endif +static inline void wbinvd(void) +{ +	asm volatile ("wbinvd" : : : "memory"); +} + +static inline void invd(void) +{ +	asm volatile("invd" : : : "memory"); +} + +/* Enable caches and write buffer */ +void enable_caches(void); + +/* Disable caches and write buffer */ +void disable_caches(void); +  #endif /* __X86_CACHE_H__ */ |