Changes in kernel/arch/ia32/src/mm/frame.c [ba4a63b8:a000878c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/frame.c
rba4a63b8 ra000878c 55 55 { 56 56 unsigned int i; 57 58 57 for (i = 0; i < e820counter; i++) { 59 58 uint64_t base = e820table[i].base_address; … … 61 60 62 61 #ifdef __32_BITS__ 62 63 63 /* Ignore physical memory above 4 GB */ 64 64 if ((base >> 32) != 0) … … 68 68 if (((base + size) >> 32) != 0) 69 69 size = 0xffffffff - base; 70 70 71 #endif 71 72 72 pfn_t pfn; 73 73 size_t count; … … 118 118 }; 119 119 120 120 121 void physmem_print(void) 121 122 { … … 133 134 134 135 printf("%#18llx %#18llx %s\n", e820table[i].base_address, 135 136 e820table[i].size, name); 136 137 } 137 138 } … … 147 148 #ifdef CONFIG_SMP 148 149 minconf = max(minconf, 149 150 150 ADDR2PFN(AP_BOOT_OFFSET + hardcoded_unmapped_ktext_size + 151 hardcoded_unmapped_kdata_size)); 151 152 #endif 152 153 153 init_e820_memory(minconf); 154 154 … … 159 159 /* Reserve AP real mode bootstrap memory */ 160 160 frame_mark_unavailable(AP_BOOT_OFFSET >> FRAME_WIDTH, 161 162 161 (hardcoded_unmapped_ktext_size + 162 hardcoded_unmapped_kdata_size) >> FRAME_WIDTH); 163 163 #endif 164 164 }
Note:
See TracChangeset
for help on using the changeset viewer.