From 33930352f3c67dbcc6bac9586a80be000fb8ed7d Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 18 Oct 2019 13:55:55 -0700 Subject: [PATCH] x86: intel64: enable MMU region list Same snippet as in our 32-bit linker file. Creates an iterable section with all the MMU_BOOT_REGION() info. Signed-off-by: Andrew Boie --- include/arch/x86/intel64/linker.ld | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/arch/x86/intel64/linker.ld b/include/arch/x86/intel64/linker.ld index d4fe621c6d9..fe75b1d63ac 100644 --- a/include/arch/x86/intel64/linker.ld +++ b/include/arch/x86/intel64/linker.ld @@ -80,6 +80,13 @@ SECTIONS #include #endif /* CONFIG_CUSTOM_RODATA_LD */ +#ifdef CONFIG_X86_MMU + . = ALIGN(8); + _mmu_region_list_start = .; + KEEP(*("._mmu_region.static.*")) + _mmu_region_list_end = .; +#endif /* CONFIG_X86_MMU */ + } GROUP_LINK_IN(ROMABLE_REGION) #include