trivial: add note that VSA blob belongs into CBFS.
[coreboot.git] / src / cpu / amd / car / clear_init_ram.c
1 /* by yhlu 6.2005 */
2 /* be warned, this file will be used core 0/node 0 only */
3
4 static void __attribute__((noinline)) clear_init_ram(void)
5 {
6         // gcc 3.4.5 will inline the copy_and_run and clear_init_ram in post_cache_as_ram
7         // will reuse %edi as 0 from clear_memory for copy_and_run part, actually it is increased already
8         // so noline clear_init_ram
9
10 #if CONFIG_HAVE_ACPI_RESUME == 1
11         /* clear only coreboot used region of memory. Note: this may break ECC enabled boards */
12         clear_memory( CONFIG_RAMBASE, (CONFIG_RAMTOP) - CONFIG_RAMBASE - CONFIG_DCACHE_RAM_SIZE);
13 #else
14         clear_memory(0, ((CONFIG_RAMTOP) - CONFIG_DCACHE_RAM_SIZE));
15 #endif
16 }
17
18 /* be warned, this file will be used by core other than core 0/node 0 or core0/node0 when cpu_reset*/
19 static void set_init_ram_access(void)
20 {
21         set_var_mtrr(0, 0x00000000, CONFIG_RAMTOP, MTRR_TYPE_WRBACK);
22 }
23