Changeset aecf79f in mainline for kernel/arch/xen32/src/mm/frame.c


Ignore:
Timestamp:
2006-07-24T16:07:15Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c59dd1a2
Parents:
7b0599b
Message:

xen memory initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/xen32/src/mm/frame.c

    r7b0599b raecf79f  
    5252void frame_arch_init(void)
    5353{
    54         static pfn_t minconf;
    55 
    5654        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;
    6457               
    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;
    6960        }
    7061}
Note: See TracChangeset for help on using the changeset viewer.