diff options
author | Myles Watson <mylesgw@gmail.com> | 2010-03-11 21:34:27 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2010-03-11 21:34:27 +0000 |
commit | ed15220b87d298088a074747b24e212c23333e33 (patch) | |
tree | 08baf8485e130591af1edd889333f3cef998c01c /src/cpu/amd/model_fxx/model_fxx_init.c | |
parent | bc259d09d342f09987c65290422009615a8287a7 (diff) |
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 <mylesgw@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5201 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/model_fxx/model_fxx_init.c')
-rw-r--r-- | src/cpu/amd/model_fxx/model_fxx_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/amd/model_fxx/model_fxx_init.c b/src/cpu/amd/model_fxx/model_fxx_init.c index 2d72618448..b4a981bcb3 100644 --- a/src/cpu/amd/model_fxx/model_fxx_init.c +++ b/src/cpu/amd/model_fxx/model_fxx_init.c @@ -24,7 +24,6 @@ #include <cpu/cpu.h> #include <cpu/x86/cache.h> #include <cpu/x86/mtrr.h> -#include <cpu/x86/mem.h> #include <cpu/amd/dualcore.h> @@ -238,7 +237,7 @@ static inline void clear_2M_ram(unsigned long basek, struct mtrr_state *mtrr_sta /* clear memory 2M (limitk - basek) */ addr = (void *)(((uint32_t)addr) | ((basek & 0x7ff) << 10)); - clear_memory(addr, size); + memset(addr, size, 0); } static void init_ecc_memory(unsigned node_id) |