Changeset 84439d7 in mainline for kernel/arch/abs32le/include/mm/page.h
- Timestamp:
- 2010-12-05T09:34:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 75732da
- Parents:
- 56b962d (diff), 35537a7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/mm/page.h
r56b962d r84439d7 44 44 #ifdef KERNEL 45 45 46 #define KA2PA(x) (((uintptr_t) (x)) - 0x80000000)47 #define PA2KA(x) (((uintptr_t) (x)) + 0x80000000)46 #define KA2PA(x) (((uintptr_t) (x)) - UINT32_C(0x80000000)) 47 #define PA2KA(x) (((uintptr_t) (x)) + UINT32_C(0x80000000)) 48 48 49 49 /* … … 65 65 66 66 /* Macros calculating indices for each level. */ 67 #define PTL0_INDEX_ARCH(vaddr) (((vaddr) >> 22) & 0x3ff )67 #define PTL0_INDEX_ARCH(vaddr) (((vaddr) >> 22) & 0x3ffU) 68 68 #define PTL1_INDEX_ARCH(vaddr) 0 69 69 #define PTL2_INDEX_ARCH(vaddr) 0 70 #define PTL3_INDEX_ARCH(vaddr) (((vaddr) >> 12) & 0x3ff )70 #define PTL3_INDEX_ARCH(vaddr) (((vaddr) >> 12) & 0x3ffU) 71 71 72 72 /* Get PTE address accessors for each level. */
Note:
See TracChangeset
for help on using the changeset viewer.