diff options
Diffstat (limited to 'src/include/cpu/x86')
-rw-r--r-- | src/include/cpu/x86/mem.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/include/cpu/x86/mem.h b/src/include/cpu/x86/mem.h deleted file mode 100644 index 530c653277..0000000000 --- a/src/include/cpu/x86/mem.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef CPU_X86_MEM_H -#define CPU_X86_MEM_H - -/* Optimized generic x86 assembly for clearing memory */ -static inline void clear_memory(void *addr, unsigned long size) -{ - asm volatile( - "cld \n\t" - "rep; stosl\n\t" - : /* No outputs */ - : "a" (0), "D" (addr), "c" (size>>2) - ); - -} - -#endif /* CPU_X86_MEM_H */ |