Changeset 87739fb in mainline
- Timestamp:
- 2012-04-06T20:52:34Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ea106a6
- Parents:
- 708ec60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/mm/page_armv7.h
r708ec60 r87739fb 265 265 p->should_be_zero_1 = 0; 266 266 p->domain = 0; 267 p->ns = 0; 267 268 } 268 269 } … … 293 294 } 294 295 296 /* tex=0 buf=1 and cache=1 => normal memory 297 * tex=0 buf=1 and cache=0 => shareable device mmio 298 */ 295 299 p->cacheable = (flags & PAGE_CACHEABLE); 296 297 /* even devices can use bufferable */298 300 p->bufferable = 1; 299 301 p->tex = 0; … … 307 309 /* default access permission: kernel only*/ 308 310 p->access_permission_0 = PTE_AP0_USER_NO_KERNEL_FULL; 309 311 310 312 if (flags & PAGE_USER) { 311 313 p->access_permission_0 = PTE_AP0_USER_FULL_KERNEL_FULL; 314 // TODO Fix kernel to use PAGE_WRITE flag properly and 315 // apply this for kernel pages as well. 312 316 if (!(flags & PAGE_WRITE)) 313 317 p->access_permission_1 = PTE_AP1_RO; 314 if (!(flags & PAGE_CACHEABLE)) {315 p->tex = 0x2;316 p->bufferable = 0;317 p->cacheable = 0;318 }319 318 } 320 319 }
Note:
See TracChangeset
for help on using the changeset viewer.