Changes in boot/arch/riscv64/include/arch/mm.h [5b0cf63:0798689] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/riscv64/include/arch/mm.h
r5b0cf63 r0798689 34 34 35 35 #ifndef __ASM__ 36 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000))37 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffff800000000000))36 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000)) 37 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffff800000000000)) 38 38 #else 39 #define KA2PA(x) ((x) - 0xffff800000000000)40 #define PA2KA(x) ((x) + 0xffff800000000000)39 #define KA2PA(x) ((x) - 0xffff800000000000) 40 #define PA2KA(x) ((x) + 0xffff800000000000) 41 41 #endif 42 42
Note:
See TracChangeset
for help on using the changeset viewer.