Changeset aecf79f in mainline for kernel/arch/xen32/src/mm/frame.c
- Timestamp:
- 2006-07-24T16:07:15Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c59dd1a2
- Parents:
- 7b0599b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/xen32/src/mm/frame.c
r7b0599b raecf79f 52 52 void frame_arch_init(void) 53 53 { 54 static pfn_t minconf;55 56 54 if (config.cpu_active == 1) { 57 minconf = 1; 58 #ifdef CONFIG_SIMICS_FIX 59 minconf = max(minconf, ADDR2PFN(0x10000)); 60 #endif 61 62 /* Reserve frame 0 (BIOS data) */ 63 frame_mark_unavailable(0, 1); 55 pfn_t start = ADDR2PFN(ALIGN_UP(KA2PA(start_info.pt_base), PAGE_SIZE)) + start_info.nr_pt_frames; 56 size_t size = start_info.nr_pages - start; 64 57 65 #ifdef CONFIG_SIMICS_FIX 66 /* Don't know why, but these addresses help */ 67 frame_mark_unavailable(0xd000 >> FRAME_WIDTH,3); 68 #endif 58 zone_create(start, size, start, 0); 59 last_frame = start + size; 69 60 } 70 61 }
Note:
See TracChangeset
for help on using the changeset viewer.