Changeset 89c57b6 in mainline for kernel/arch/abs32le/include/mm/page.h
- Timestamp:
- 2011-04-13T14:45:41Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (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
-
kernel/arch/abs32le/include/mm/page.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/mm/page.h
rcefb126 r89c57b6 37 37 38 38 #include <arch/mm/frame.h> 39 #include <trace.h> 39 40 40 41 #define PAGE_WIDTH FRAME_WIDTH … … 43 44 #ifdef KERNEL 44 45 45 #define KA2PA(x) (((uintptr_t) (x)) - 0x80000000)46 #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)) 47 48 48 49 /* … … 64 65 65 66 /* Macros calculating indices for each level. */ 66 #define PTL0_INDEX_ARCH(vaddr) (((vaddr) >> 22) & 0x3ff )67 #define PTL0_INDEX_ARCH(vaddr) (((vaddr) >> 22) & 0x3ffU) 67 68 #define PTL1_INDEX_ARCH(vaddr) 0 68 69 #define PTL2_INDEX_ARCH(vaddr) 0 69 #define PTL3_INDEX_ARCH(vaddr) (((vaddr) >> 12) & 0x3ff )70 #define PTL3_INDEX_ARCH(vaddr) (((vaddr) >> 12) & 0x3ffU) 70 71 71 72 /* Get PTE address accessors for each level. */ … … 139 140 } __attribute__((packed)) pte_t; 140 141 141 static inline unsigned int get_pt_flags(pte_t *pt, size_t i)142 NO_TRACE static inline unsigned int get_pt_flags(pte_t *pt, size_t i) 142 143 REQUIRES_ARRAY_MUTABLE(pt, PTL0_ENTRIES_ARCH) 143 144 { … … 155 156 } 156 157 157 static inline void set_pt_flags(pte_t *pt, size_t i, int flags)158 NO_TRACE static inline void set_pt_flags(pte_t *pt, size_t i, int flags) 158 159 WRITES(ARRAY_RANGE(pt, PTL0_ENTRIES_ARCH)) 159 160 REQUIRES_ARRAY_MUTABLE(pt, PTL0_ENTRIES_ARCH)
Note:
See TracChangeset
for help on using the changeset viewer.
