Add infrastructure for global data in the CAR phase of boot
[coreboot.git] / src / arch / x86 / init / bootblock.ld
index 27d718fcbc8e71ec5c53f53c81a0683a9ba2e010..ca4e82021751b633507d40b774848f226496ceb0 100644 (file)
@@ -46,5 +46,12 @@ SECTIONS
                *(.eh_frame);
        }
 
+       . = CONFIG_DCACHE_RAM_BASE;
+       .car.data . (NOLOAD) : {
+               *(.car.global_data);
+               *(.car.cbmem_console);
+       }
+
+       _bogus = ASSERT((SIZEOF(.car.data) <= CONFIG_DCACHE_RAM_SIZE), "Cache as RAM area is too full");
        _bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0 || CONFIG_CPU_AMD_AGESA, "Do not use global variables in romstage");
 }