Changes in kernel/arch/mips32/include/mm/page.h [98000fb:7a0359b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/mm/page.h
r98000fb r7a0359b 37 37 38 38 #include <arch/mm/frame.h> 39 #include <trace.h> 39 40 40 41 #define PAGE_WIDTH FRAME_WIDTH … … 141 142 #include <arch/exception.h> 142 143 143 static inline int get_pt_flags(pte_t *pt, size_t i) 144 /** Page Table Entry. */ 145 typedef struct { 146 unsigned g : 1; /**< Global bit. */ 147 unsigned p : 1; /**< Present bit. */ 148 unsigned d : 1; /**< Dirty bit. */ 149 unsigned cacheable : 1; /**< Cacheable bit. */ 150 unsigned : 1; /**< Unused. */ 151 unsigned soft_valid : 1; /**< Valid content even if not present. */ 152 unsigned pfn : 24; /**< Physical frame number. */ 153 unsigned w : 1; /**< Page writable bit. */ 154 unsigned a : 1; /**< Accessed bit. */ 155 } pte_t; 156 157 158 NO_TRACE static inline unsigned int get_pt_flags(pte_t *pt, size_t i) 144 159 { 145 160 pte_t *p = &pt[i]; … … 154 169 } 155 170 156 static inline void set_pt_flags(pte_t *pt, size_t i, int flags)171 NO_TRACE static inline void set_pt_flags(pte_t *pt, size_t i, int flags) 157 172 { 158 173 pte_t *p = &pt[i];
Note:
See TracChangeset
for help on using the changeset viewer.