Changeset ba4a63b8 in mainline
- Timestamp:
- 2010-05-14T17:29:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9644c69
- Parents:
- c964521
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/frame.c
rc964521 rba4a63b8 55 55 { 56 56 unsigned int i; 57 57 58 for (i = 0; i < e820counter; i++) { 58 59 uint64_t base = e820table[i].base_address; … … 60 61 61 62 #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 71 70 #endif 71 72 72 pfn_t pfn; 73 73 size_t count; … … 118 118 }; 119 119 120 121 120 void physmem_print(void) 122 121 { … … 134 133 135 134 printf("%#18llx %#18llx %s\n", e820table[i].base_address, 136 135 e820table[i].size, name); 137 136 } 138 137 } … … 148 147 #ifdef CONFIG_SMP 149 148 minconf = max(minconf, 150 151 149 ADDR2PFN(AP_BOOT_OFFSET + hardcoded_unmapped_ktext_size + 150 hardcoded_unmapped_kdata_size)); 152 151 #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.