Changeset ae318d3 in mainline for kernel/arch/ia32/src
- Timestamp:
- 2009-02-16T18:50:48Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06da55b
- Parents:
- 17f168e
- Location:
- kernel/arch/ia32/src/mm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/frame.c
r17f168e rae318d3 51 51 52 52 uintptr_t last_frame = 0; 53 uintptr_t end_frame = 0; 53 54 54 55 static void init_e820_memory(pfn_t minconf) … … 74 75 last_frame = 75 76 ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE); 76 } 77 } 77 78 } 79 80 end_frame = last_frame; 78 81 } 79 82 … … 114 117 if (config.cpu_active == 1) { 115 118 minconf = 1; 119 116 120 #ifdef CONFIG_SMP 117 121 minconf = max(minconf, … … 120 124 #endif 121 125 init_e820_memory(minconf); 122 126 123 127 /* Reserve frame 0 (BIOS data) */ 124 128 frame_mark_unavailable(0, 1); -
kernel/arch/ia32/src/mm/page.c
r17f168e rae318d3 94 94 } 95 95 96 void hw_area(uintptr_t *physaddr, pfn_t *frames) 97 { 98 *physaddr = end_frame; 99 *frames = ADDR2PFN(0xffffffff - end_frame); 100 } 101 96 102 void page_fault(int n __attribute__((unused)), istate_t *istate) 97 103 { … … 103 109 if (istate->error_word & PFERR_CODE_RSVD) 104 110 panic("Reserved bit set in page directory."); 105 111 106 112 if (istate->error_word & PFERR_CODE_RW) 107 113 access = PF_ACCESS_WRITE;
Note:
See TracChangeset
for help on using the changeset viewer.