summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2016-12-06 14:00:05 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2016-12-06 20:53:45 +0100
commit140087f84fbed117686c15e9d0c7c6921d494059 (patch)
tree7ca17ca92f87c1d2dd72c15126a37e148a1e0d7e /src/arch/x86
parentcd6d281fbee4de59aad1e76f1ed9afeb19ce9a0b (diff)
downloadcoreboot-140087f84fbed117686c15e9d0c7c6921d494059.tar.xz
CPU: Declare cpu_phys_address_size() for all arch
Resource allocator and 64-bit PCI BARs will need it and PCI use is not really restricted to x86. Change-Id: Ie97f0f73380118f43ec6271aed5617d62a4f5532 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/17733 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/include/arch/cpu.h1
-rw-r--r--src/arch/x86/postcar_loader.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/include/arch/cpu.h b/src/arch/x86/include/arch/cpu.h
index 578bb07369..a923d8e48e 100644
--- a/src/arch/x86/include/arch/cpu.h
+++ b/src/arch/x86/include/arch/cpu.h
@@ -161,7 +161,6 @@ static inline unsigned int cpuid_edx(unsigned int op)
int cpu_cpuid_extended_level(void);
int cpu_have_cpuid(void);
-int cpu_phys_address_size(void);
void smm_init(void);
void smm_lock(void);
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c
index 948e4459fa..23f33d556d 100644
--- a/src/arch/x86/postcar_loader.c
+++ b/src/arch/x86/postcar_loader.c
@@ -16,6 +16,7 @@
#include <arch/cpu.h>
#include <cbmem.h>
#include <console/console.h>
+#include <cpu/cpu.h>
#include <cpu/x86/msr.h>
#include <cpu/x86/mtrr.h>
#include <program_loading.h>