aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/cpu
diff options
context:
space:
mode:
authorTroy Kisky <troykiskyboundary@gmail.com>2023-03-13 14:31:43 -0700
committerBin Meng <bmeng@tinylab.org>2023-09-22 06:03:46 +0800
commit5c39f2c150612e04c0534348cc71e93e43026cf0 (patch)
tree9077341986a6863a0df2cf23d35cbd956f9281a1 /arch/x86/cpu
parent5d2fae79c7d60eaf7f50322e4ec125d2f58544e9 (diff)
downloadu-boot-5c39f2c150612e04c0534348cc71e93e43026cf0.zip
u-boot-5c39f2c150612e04c0534348cc71e93e43026cf0.tar.gz
u-boot-5c39f2c150612e04c0534348cc71e93e43026cf0.tar.bz2
x86: cpu: i386: cpu: only set pci_ram_top if CONFIG_IS_ENABLED(PCI)
This avoids an error when ifdef CONFIG_PCI is changed to if CONFIG_IS_ENABLED(PCI) Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com> [Rebased on top of u-boot/master] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu')
-rw-r--r--arch/x86/cpu/i386/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c
index 91cd5d7..8882532 100644
--- a/arch/x86/cpu/i386/cpu.c
+++ b/arch/x86/cpu/i386/cpu.c
@@ -415,7 +415,7 @@ int cpu_phys_address_size(void)
/* Don't allow PCI region 3 to use memory in the 2-4GB memory hole */
static void setup_pci_ram_top(void)
{
- gd->pci_ram_top = 0x80000000U;
+ gd_set_pci_ram_top(0x80000000U);
}
static void setup_mtrr(void)