diff options
| author | bigmagic <[email protected]> | 2020-03-02 20:42:01 +0800 |
|---|---|---|
| committer | bigmagic <[email protected]> | 2020-03-02 20:49:27 +0800 |
| commit | cc95025f052f98414ebe9e2a77334937a6ca550d (patch) | |
| tree | d4cb299685d66d423e3a256e28df5f04ba6b911f /libcpu/aarch64 | |
| parent | 7d23d713ed22335dbb8fd20065e344c0275e9d93 (diff) | |
fix build err
Diffstat (limited to 'libcpu/aarch64')
| -rw-r--r-- | libcpu/aarch64/cortex-a53/mmu.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
