Ignore:
File:
1 edited

Legend:

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

    r49ec568 r40c8c17  
    4646#include <print.h>
    4747
    48 #define PHYSMEM_LIMIT32  UINT64_C(0x100000000)
    49 
    5048size_t hardcoded_unmapped_ktext_size = 0;
    5149size_t hardcoded_unmapped_kdata_size = 0;
     
    5654       
    5755        for (i = 0; i < e820counter; i++) {
    58                 uint64_t base64 = e820table[i].base_address;
    59                 uint64_t size64 = e820table[i].size;
    60                
    61 #ifdef KARCH_ia32
    62                 /*
    63                  * Restrict the e820 table entries to 32-bits.
    64                  */
    65                 if (base64 >= PHYSMEM_LIMIT32)
    66                         continue;
    67                
    68                 if (base64 + size64 > PHYSMEM_LIMIT32)
    69                         size64 = PHYSMEM_LIMIT32 - base64;
    70 #endif
    71                
    72                 uintptr_t base = (uintptr_t) base64;
    73                 size_t size = (size_t) size64;
     56                uintptr_t base = (uintptr_t) e820table[i].base_address;
     57                size_t size = (size_t) e820table[i].size;
    7458               
    7559                if (!frame_adjust_zone_bounds(low, &base, &size))
     
    9579                        } else {
    9680                                conf = zone_external_conf_alloc(count);
    97                                 if (conf != 0)
    98                                         zone_create(pfn, count, conf,
    99                                             ZONE_AVAILABLE | ZONE_HIGHMEM);
     81                                zone_create(pfn, count, conf,
     82                                    ZONE_AVAILABLE | ZONE_HIGHMEM);
    10083                        }
    10184                } else if ((e820table[i].type == MEMMAP_MEMORY_ACPI) ||
Note: See TracChangeset for help on using the changeset viewer.