Changeset 7f043c0 in mainline for kernel/arch/ia32/src/mm/page.c
- Timestamp:
- 2007-05-31T21:39:13Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bb0c32
- Parents:
- d8431986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/page.c
rd8431986 r7f043c0 84 84 uintptr_t virtaddr = PA2KA(last_frame); 85 85 pfn_t i; 86 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) 87 page_mapping_insert(AS_KERNEL, virtaddr + PFN2ADDR(i), physaddr + PFN2ADDR(i), PAGE_NOT_CACHEABLE | PAGE_WRITE); 86 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) { 87 uintptr_t addr = PFN2ADDR(i); 88 page_mapping_insert(AS_KERNEL, virtaddr + addr, physaddr + addr, PAGE_NOT_CACHEABLE | PAGE_WRITE); 89 } 88 90 89 91 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE); … … 92 94 } 93 95 94 void page_fault(int n , istate_t *istate)96 void page_fault(int n __attribute__((unused)), istate_t *istate) 95 97 { 96 98 uintptr_t page; … … 111 113 112 114 decode_istate(istate); 113 printf("page fault address: %# x\n", page);115 printf("page fault address: %#lx\n", page); 114 116 panic("page fault\n"); 115 117 }
Note:
See TracChangeset
for help on using the changeset viewer.