diff options
author | Aaron Durbin <adurbin@chromium.org> | 2018-04-17 10:55:14 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-23 09:17:34 +0000 |
commit | 7f5e73463882a92b64dc9f3ffd72a3bc0762300c (patch) | |
tree | 0ada2bbbda4c43d792516fb0731981f928a12d6c /src/cpu/x86 | |
parent | b5eee682dc770e784f4805cdf9fe9e71447adbe1 (diff) | |
download | coreboot-7f5e73463882a92b64dc9f3ffd72a3bc0762300c.tar.xz |
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 <arch/cpu.h> 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 <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/25712
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'src/cpu/x86')
-rw-r--r-- | src/cpu/x86/Makefile.inc | 1 | ||||
-rw-r--r-- | src/cpu/x86/pae/Makefile.inc | 7 | ||||
-rw-r--r-- | src/cpu/x86/pae/pgtbl.c | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/src/cpu/x86/Makefile.inc b/src/cpu/x86/Makefile.inc index 771784e6ff..3e8a6648f4 100644 --- a/src/cpu/x86/Makefile.inc +++ b/src/cpu/x86/Makefile.inc @@ -4,6 +4,7 @@ romstage-$(CONFIG_CACHE_AS_RAM) += car.c endif endif +subdirs-y += pae subdirs-$(CONFIG_PARALLEL_MP) += name ramstage-$(CONFIG_PARALLEL_MP) += mp_init.c ramstage-$(CONFIG_MIRROR_PAYLOAD_TO_RAM_BEFORE_LOADING) += mirror_payload.c diff --git a/src/cpu/x86/pae/Makefile.inc b/src/cpu/x86/pae/Makefile.inc index 060720c898..62176d20b8 100644 --- a/src/cpu/x86/pae/Makefile.inc +++ b/src/cpu/x86/pae/Makefile.inc @@ -1 +1,6 @@ -ramstage-$(CONFIG_CPU_AMD_MODEL_FXX) += pgtbl.c +bootblock-y += pgtbl.c +verstage-y += pgtbl.c +romstage-y += pgtbl.c +postcar-y += pgtbl.c +ramstage-y += pgtbl.c +smm-y += 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 <compiler.h> #include <console/console.h> #include <cpu/cpu.h> +#include <arch/cpu.h> #include <cpu/x86/pae.h> +#include <rules.h> #include <string.h> +#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 |