Changeset 98000fb in mainline for kernel/arch/mips32/include/mm/page.h
- Timestamp:
- 2009-06-03T19:34:45Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/mm/page.h
r69e68e3 r98000fb 113 113 /* Get PTE flags accessors for each level. */ 114 114 #define GET_PTL1_FLAGS_ARCH(ptl0, i) \ 115 get_pt_flags((pte_t *) (ptl0), ( index_t) (i))115 get_pt_flags((pte_t *) (ptl0), (size_t) (i)) 116 116 #define GET_PTL2_FLAGS_ARCH(ptl1, i) \ 117 117 PAGE_PRESENT … … 119 119 PAGE_PRESENT 120 120 #define GET_FRAME_FLAGS_ARCH(ptl3, i) \ 121 get_pt_flags((pte_t *) (ptl3), ( index_t) (i))121 get_pt_flags((pte_t *) (ptl3), (size_t) (i)) 122 122 123 123 /* Set PTE flags accessors for each level. */ 124 124 #define SET_PTL1_FLAGS_ARCH(ptl0, i, x) \ 125 set_pt_flags((pte_t *) (ptl0), ( index_t) (i), (x))125 set_pt_flags((pte_t *) (ptl0), (size_t) (i), (x)) 126 126 #define SET_PTL2_FLAGS_ARCH(ptl1, i, x) 127 127 #define SET_PTL3_FLAGS_ARCH(ptl2, i, x) 128 128 #define SET_FRAME_FLAGS_ARCH(ptl3, i, x) \ 129 set_pt_flags((pte_t *) (ptl3), ( index_t) (i), (x))129 set_pt_flags((pte_t *) (ptl3), (size_t) (i), (x)) 130 130 131 131 /* Last-level info macros. */ … … 141 141 #include <arch/exception.h> 142 142 143 static inline int get_pt_flags(pte_t *pt, index_t i)143 static inline int get_pt_flags(pte_t *pt, size_t i) 144 144 { 145 145 pte_t *p = &pt[i]; … … 154 154 } 155 155 156 static inline void set_pt_flags(pte_t *pt, index_t i, int flags)156 static inline void set_pt_flags(pte_t *pt, size_t i, int flags) 157 157 { 158 158 pte_t *p = &pt[i];
Note:
See TracChangeset
for help on using the changeset viewer.