diff options
author | Denis Orlov <denorl2009@gmail.com> | 2023-06-05 23:10:33 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-06-09 08:43:23 +0200 |
commit | bda35cd5a22b24d291864d320fc360093378c46f (patch) | |
tree | 7bcd08cdea162bab853403393f57be8ee4b7253b /arch/mips | |
parent | 08ebb6b42e76b7636a33cae8e01ebc19218380e7 (diff) | |
download | barebox-bda35cd5a22b24d291864d320fc360093378c46f.tar.gz barebox-bda35cd5a22b24d291864d320fc360093378c46f.tar.xz |
MIPS: malta: use CKSEG instead of KSEG macros
KSEG macro is not available when compiling with CONFIG_64BIT enabled, so
use CKSEG instead.
Signed-off-by: Denis Orlov <denorl2009@gmail.com>
Link: https://lore.barebox.org/20230605202634.42175-3-denorl2009@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/boards/qemu-malta/lowlevel.S | 4 | ||||
-rw-r--r-- | arch/mips/mach-malta/pci.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/boards/qemu-malta/lowlevel.S b/arch/mips/boards/qemu-malta/lowlevel.S index 98821e0426..541d62fc2a 100644 --- a/arch/mips/boards/qemu-malta/lowlevel.S +++ b/arch/mips/boards/qemu-malta/lowlevel.S @@ -56,14 +56,14 @@ __start: */ /* move GT64120 registers to 0x1be00000 */ - li t1, KSEG1ADDR(GT_DEF_BASE) + li t1, CKSEG1ADDR(GT_DEF_BASE) li t0, GT_LD(MIPS_GT_BASE) sw t0, GT_ISD_OFS(t1) /* * setup MEM-to-PCI0 mapping */ - li t1, KSEG1ADDR(MIPS_GT_BASE) + li t1, CKSEG1ADDR(MIPS_GT_BASE) /* setup PCI0 io window */ li t0, GT_LD(0x18000000) diff --git a/arch/mips/mach-malta/pci.c b/arch/mips/mach-malta/pci.c index 113b94fe23..0ab239f509 100644 --- a/arch/mips/mach-malta/pci.c +++ b/arch/mips/mach-malta/pci.c @@ -136,7 +136,7 @@ static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, static resource_size_t gt64xxx_res_start(struct pci_bus *bus, resource_size_t res_addr) { - return KSEG0ADDR(res_addr); + return CKSEG0ADDR(res_addr); } struct pci_ops gt64xxx_pci0_ops = { |