diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-10-16 16:32:57 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-10-16 16:32:57 +0000 |
commit | 0f61a4fc98f135c0ed22c67ee3241bf5670a61e2 (patch) | |
tree | b3867408477cdf8a3a2374f32d91b4f3936b7486 /src/cpu/amd/car/clear_init_ram.c | |
parent | 9969bdc4fb3d36a39ed9efb67ef0bf638a4e8e09 (diff) |
Change CONFIG_LB_MEM_TOPK to CONFIG_RAMTOP to match CONFIG_RAMBASE.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4788 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/car/clear_init_ram.c')
-rw-r--r-- | src/cpu/amd/car/clear_init_ram.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/amd/car/clear_init_ram.c b/src/cpu/amd/car/clear_init_ram.c index 0b50480142..624e0fea83 100644 --- a/src/cpu/amd/car/clear_init_ram.c +++ b/src/cpu/amd/car/clear_init_ram.c @@ -9,15 +9,15 @@ static void __attribute__((noinline)) clear_init_ram(void) #if CONFIG_HAVE_ACPI_RESUME == 1 /* clear only coreboot used region of memory. Note: this may break ECC enabled boards */ - clear_memory( CONFIG_RAMBASE, (CONFIG_LB_MEM_TOPK << 10) - CONFIG_RAMBASE - CONFIG_DCACHE_RAM_SIZE); + clear_memory( CONFIG_RAMBASE, (CONFIG_RAMTOP) - CONFIG_RAMBASE - CONFIG_DCACHE_RAM_SIZE); #else - clear_memory(0, ((CONFIG_LB_MEM_TOPK<<10) - CONFIG_DCACHE_RAM_SIZE)); + clear_memory(0, ((CONFIG_RAMTOP) - CONFIG_DCACHE_RAM_SIZE)); #endif } /* be warned, this file will be used by core other than core 0/node 0 or core0/node0 when cpu_reset*/ static void set_init_ram_access(void) { - set_var_mtrr(0, 0x00000000, CONFIG_LB_MEM_TOPK << 10, MTRR_TYPE_WRBACK); + set_var_mtrr(0, 0x00000000, CONFIG_RAMTOP, MTRR_TYPE_WRBACK); } |