Changes in kernel/arch/ia32/src/mm/frame.c [aaceebc4:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/frame.c
raaceebc4 r9d58539 47 47 48 48 #define PHYSMEM_LIMIT32 UINT64_C(0x100000000) 49 #define PHYSMEM_LIMIT_DMA UINT64_C(0x1000000)50 49 51 50 size_t hardcoded_unmapped_ktext_size = 0; … … 92 91 else 93 92 conf = minconf; 94 95 if ((pfn * PAGE_SIZE) < PHYSMEM_LIMIT_DMA) { 96 size_t dma_count = min( 97 PHYSMEM_LIMIT_DMA / PAGE_SIZE - pfn, 98 count); 99 zone_create(pfn, dma_count, conf, 100 ZONE_AVAILABLE | ZONE_DMA); 101 count -= dma_count; 102 pfn += dma_count; 103 } 104 105 conf = pfn; 106 if (count) { 107 zone_create(pfn, count, conf, 108 ZONE_AVAILABLE | ZONE_LOWMEM); 109 } 93 zone_create(pfn, count, conf, 94 ZONE_AVAILABLE | ZONE_LOWMEM); 110 95 } else { 111 96 conf = zone_external_conf_alloc(count); 112 if (conf != 0) {97 if (conf != 0) 113 98 zone_create(pfn, count, conf, 114 99 ZONE_AVAILABLE | ZONE_HIGHMEM); 115 }116 100 } 117 101 } else if ((e820table[i].type == MEMMAP_MEMORY_ACPI) ||
Note:
See TracChangeset
for help on using the changeset viewer.