From ed15220b87d298088a074747b24e212c23333e33 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 11 Mar 2010 21:34:27 +0000 Subject: Replace clear_memory with memset. Replace set_init_ram_access with the call to set_var_mtrr. Remove unused #include statments. Signed-off-by: Myles Watson Acked-by: Patrick Georgi git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5201 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/include/cpu/x86/mem.h | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/include/cpu/x86/mem.h (limited to 'src/include/cpu') 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 */ -- cgit v1.2.3