soc/intel/denverton_ns: Fetch addr bits at runtime
Change-Id: Ic46a7d56cbaf45724ebc2a1911f5096af2fe461a Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58687 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mariusz Szafrański <mariuszx.szafranski@intel.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
67d62fdfed
commit
ba15a598b0
|
@ -4,6 +4,7 @@
|
|||
#include <acpi/acpi_gnvs.h>
|
||||
#include <acpi/acpigen.h>
|
||||
#include <arch/smp/mpspec.h>
|
||||
#include <cpu/cpu.h>
|
||||
#include <cpu/x86/smm.h>
|
||||
#include <string.h>
|
||||
#include <device/pci.h>
|
||||
|
@ -60,7 +61,7 @@ void soc_fill_gnvs(struct global_nvs *gnvs)
|
|||
gnvs->mmiob = (u32)get_top_of_low_memory();
|
||||
gnvs->mmiol = (u32)(get_pciebase() - 1);
|
||||
gnvs->mmiohb = (u64)get_top_of_upper_memory();
|
||||
gnvs->mmiohl = (u64)(((u64)1 << CONFIG_CPU_ADDR_BITS) - 1);
|
||||
gnvs->mmiohl = (u64)(((u64)1 << cpu_phys_address_size()) - 1);
|
||||
gnvs->tsegb = (u32)get_tseg_memory();
|
||||
gnvs->tsegl = (u32)(get_top_of_low_memory() - get_tseg_memory());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue