From cc95025f052f98414ebe9e2a77334937a6ca550d Mon Sep 17 00:00:00 2001 From: bigmagic Date: Mon, 2 Mar 2020 20:42:01 +0800 Subject: [PATCH] fix build err --- libcpu/aarch64/cortex-a53/mmu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcpu/aarch64/cortex-a53/mmu.h b/libcpu/aarch64/cortex-a53/mmu.h index 15e014deb6..61d64164b1 100644 --- a/libcpu/aarch64/cortex-a53/mmu.h +++ b/libcpu/aarch64/cortex-a53/mmu.h @@ -20,6 +20,8 @@ #define MEM_ATTR_MEMORY ((0x1UL << 10) | (0x2UL << 8) | (0x0UL << 6) | (0x1UL << 2)) #define MEM_ATTR_IO ((0x1UL << 10) | (0x2UL << 8) | (0x0UL << 6) | (0x2UL << 2)) +#define BUS_ADDRESS(phys) (((phys) & ~0xC0000000) | 0xC0000000) + void mmu_init(void); void mmu_enable(void); -- GitLab