linker script: hax :/
[coreboot.git] / src / arch / x86 / init / bootblock.ld
index 27d718fcbc8e71ec5c53f53c81a0683a9ba2e010..9c8485af6869d4d5d51e720b3c09657e15d47ba3 100644 (file)
@@ -46,5 +46,13 @@ SECTIONS
                *(.eh_frame);
        }
 
-       _bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0 || CONFIG_CPU_AMD_AGESA, "Do not use global variables in romstage");
+       . = 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_AMD_AGESA, "Do not use global variables in romstage");
+ */
 }