Changeset cf27a6cb in mainline for arch/ia32/src/mm/frame.c


Ignore:
Timestamp:
2005-09-21T22:34:54Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23443b2
Parents:
74b2f5bf
Message:

Complete map_kernel() in boot.S to map the entire 4G space.

Change IA-32 frame_arch_init() to add zone with lower base addresses first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/mm/frame.c

    r74b2f5bf rcf27a6cb  
    4444       
    4545        if (config.cpu_active == 1) {
    46                 for (i=e820counter;i>0;i--) {
    47                         if (e820table[i-1].type==MEMMAP_MEMORY_AVAILABLE) {
    48                                 z = zone_create(e820table[i-1].base_address, e820table[i-1].size & ~(FRAME_SIZE-1), 0);
     46                for (i=0;i<e820counter;i++) {
     47                        if (e820table[i].type==MEMMAP_MEMORY_AVAILABLE) {
     48                                z = zone_create(e820table[i].base_address, e820table[i].size & ~(FRAME_SIZE-1), 0);
    4949                                if (!z) {
    50                                         panic("Cannot allocate zone (%dB).\n", e820table[i-1].size & ~(FRAME_SIZE-1));
     50                                        panic("Cannot allocate zone (%dB).\n", e820table[i].size & ~(FRAME_SIZE-1));
    5151                                }
    5252                                zone_attach(z);
Note: See TracChangeset for help on using the changeset viewer.