From 7f5e73463882a92b64dc9f3ffd72a3bc0762300c Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 17 Apr 2018 10:55:14 -0600 Subject: cpu/x86: add pae paging module to all stages In preparation for bringing in paging early always provide the paging pae module to all stages. Since we cull unused symbols this is a no-op. Compilation testing will happen all the time since the module currently doesn't compile without include. The current file is completely guarded with ENV_RAMSTAGE because it's using cpu_index() which is a ramstage-only construct. BUG=b:72728953 Change-Id: Ib4310b8206e5247fa220b42203bcd18d522d51ea Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/25712 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Justin TerAvest --- src/cpu/x86/pae/pgtbl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpu/x86/pae/pgtbl.c') diff --git a/src/cpu/x86/pae/pgtbl.c b/src/cpu/x86/pae/pgtbl.c index 3532e9781e..0c4bff5067 100644 --- a/src/cpu/x86/pae/pgtbl.c +++ b/src/cpu/x86/pae/pgtbl.c @@ -16,9 +16,12 @@ #include #include #include +#include #include +#include #include +#if ENV_RAMSTAGE static void paging_off(void) { __asm__ __volatile__ ( @@ -115,3 +118,4 @@ void *map_2M_page(unsigned long page) result = (void *)(0x80000000 | ((page & 0x3ff) << 21)); return result; } +#endif -- cgit v1.2.3