aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86/cpu_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/cpu_common.c')
-rw-r--r--src/arch/x86/cpu_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/x86/cpu_common.c b/src/arch/x86/cpu_common.c
index 0242dcebdd..c4d30a2c06 100644
--- a/src/arch/x86/cpu_common.c
+++ b/src/arch/x86/cpu_common.c
@@ -60,6 +60,14 @@ unsigned int cpu_phys_address_size(void)
return 32;
}
+unsigned int soc_phys_address_size(void)
+{
+ if (CONFIG_SOC_PHYSICAL_ADDRESS_WIDTH)
+ return CONFIG_SOC_PHYSICAL_ADDRESS_WIDTH;
+
+ return cpu_phys_address_size();
+}
+
/*
* Get processor id using cpuid eax=1
* return value in EAX register