Changeset 98000fb in mainline for kernel/arch/ia32/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/ia32/include/mm/page.h
r69e68e3 r98000fb 96 96 /* Get PTE flags accessors for each level. */ 97 97 #define GET_PTL1_FLAGS_ARCH(ptl0, i) \ 98 get_pt_flags((pte_t *) (ptl0), ( index_t) (i))98 get_pt_flags((pte_t *) (ptl0), (size_t) (i)) 99 99 #define GET_PTL2_FLAGS_ARCH(ptl1, i) \ 100 100 PAGE_PRESENT … … 102 102 PAGE_PRESENT 103 103 #define GET_FRAME_FLAGS_ARCH(ptl3, i) \ 104 get_pt_flags((pte_t *) (ptl3), ( index_t) (i))104 get_pt_flags((pte_t *) (ptl3), (size_t) (i)) 105 105 106 106 /* Set PTE flags accessors for each level. */ 107 107 #define SET_PTL1_FLAGS_ARCH(ptl0, i, x) \ 108 set_pt_flags((pte_t *) (ptl0), ( index_t) (i), (x))108 set_pt_flags((pte_t *) (ptl0), (size_t) (i), (x)) 109 109 #define SET_PTL2_FLAGS_ARCH(ptl1, i, x) 110 110 #define SET_PTL3_FLAGS_ARCH(ptl2, i, x) 111 111 #define SET_FRAME_FLAGS_ARCH(ptl3, i, x) \ 112 set_pt_flags((pte_t *) (ptl3), ( index_t) (i), (x))112 set_pt_flags((pte_t *) (ptl3), (size_t) (i), (x)) 113 113 114 114 /* Macros for querying the last level entries. */ … … 146 146 #define PFERR_CODE_RSVD (1 << 3) 147 147 148 static inline int get_pt_flags(pte_t *pt, index_t i)148 static inline int get_pt_flags(pte_t *pt, size_t i) 149 149 { 150 150 pte_t *p = &pt[i]; … … 159 159 } 160 160 161 static inline void set_pt_flags(pte_t *pt, index_t i, int flags)161 static inline void set_pt_flags(pte_t *pt, size_t i, int flags) 162 162 { 163 163 pte_t *p = &pt[i];
Note:
See TracChangeset
for help on using the changeset viewer.