644a512e56
It seems that GCC's LTO doesn't like the way we implement DECLARE_OPTIONAL_REGION(). This patch changes it so that rather than having a normal DECLARE_REGION() in <symbols.h> and then an extra DECLARE_OPTIONAL_REGION() in the C file using it, you just say DECLARE_OPTIONAL_REGION() directly in <symbols.h> (in place and instead of the usual DECLARE_REGION()). This basically looks the same way in the resulting object file but somehow LTO seems to like it better. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I6096207b311d70c8e9956cd9406bec45be04a4a2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44791 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
26 lines
622 B
C
26 lines
622 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <bootmem.h>
|
|
#include <boot/tables.h>
|
|
#include <boot/coreboot_tables.h>
|
|
#include <symbols.h>
|
|
|
|
void arch_write_tables(uintptr_t coreboot_table)
|
|
{
|
|
}
|
|
|
|
void bootmem_arch_add_ranges(void)
|
|
{
|
|
bootmem_add_range((uintptr_t)_ttb, REGION_SIZE(ttb), BM_MEM_RAMSTAGE);
|
|
bootmem_add_range((uintptr_t)_ttb_subtables, REGION_SIZE(ttb_subtables),
|
|
BM_MEM_RAMSTAGE);
|
|
|
|
if (!CONFIG(COMMON_CBFS_SPI_WRAPPER))
|
|
return;
|
|
bootmem_add_range((uintptr_t)_postram_cbfs_cache,
|
|
REGION_SIZE(postram_cbfs_cache), BM_MEM_RAMSTAGE);
|
|
}
|
|
|
|
void lb_arch_add_records(struct lb_header *header)
|
|
{
|
|
}
|