Changeset 804d9b6 in mainline
- Timestamp:
- 2012-07-14T11:25:41Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 774c143
- Parents:
- 97c7682
- Location:
- kernel/arch/arm32/include/mm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/mm/page.h
r97c7682 r804d9b6 135 135 #endif 136 136 137 #ifndef __ASM__138 NO_TRACE static inline void set_pt_level0_present(pte_t *pt, size_t i)139 {140 pte_level0_t *p = &pt[i].l0;141 142 p->should_be_zero = 0;143 write_barrier();144 p->descriptor_type = PTE_DESCRIPTOR_COARSE_TABLE;145 }146 147 148 NO_TRACE static inline void set_pt_level1_present(pte_t *pt, size_t i)149 {150 pte_level1_t *p = &pt[i].l1;151 152 p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE;153 }154 155 #endif /* __ASM__ */156 157 137 #endif 158 138 -
kernel/arch/arm32/include/mm/page_armv4.h
r97c7682 r804d9b6 241 241 } 242 242 243 NO_TRACE static inline void set_pt_level0_present(pte_t *pt, size_t i) 244 { 245 pte_level0_t *p = &pt[i].l0; 246 247 p->should_be_zero = 0; 248 write_barrier(); 249 p->descriptor_type = PTE_DESCRIPTOR_COARSE_TABLE; 250 } 251 252 253 NO_TRACE static inline void set_pt_level1_present(pte_t *pt, size_t i) 254 { 255 pte_level1_t *p = &pt[i].l1; 256 257 p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE; 258 } 259 243 260 244 261 extern void page_arch_init(void); -
kernel/arch/arm32/include/mm/page_armv7.h
r97c7682 r804d9b6 258 258 } 259 259 260 NO_TRACE static inline void set_pt_level0_present(pte_t *pt, size_t i) 261 { 262 pte_level0_t *p = &pt[i].l0; 263 264 p->should_be_zero_0 = 0; 265 p->should_be_zero_1 = 0; 266 write_barrier(); 267 p->descriptor_type = PTE_DESCRIPTOR_COARSE_TABLE; 268 } 269 270 NO_TRACE static inline void set_pt_level1_present(pte_t *pt, size_t i) 271 { 272 pte_level1_t *p = &pt[i].l1; 273 274 p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE; 275 } 276 260 277 261 278 extern void page_arch_init(void);
Note:
See TracChangeset
for help on using the changeset viewer.