|
|
@ -3117,16 +3117,16 @@ struct efi_memory_map_loongson * init_memory_map() |
|
|
|
EMAP_ENTRY(i, 0, SYSTEM_RAM_HIGH, 0x90000000, 0x6f0); |
|
|
|
|
|
|
|
if(memorysize_high_n1) { |
|
|
|
EMAP_ENTRY(i, 1, SYSTEM_RAM_LOW, 0x100000000000L, 0x100); |
|
|
|
EMAP_ENTRY(i, 1, 2, 0x100000000000L + 0x90000000, memorysize_high_n1 >> 20); |
|
|
|
EMAP_ENTRY(i, 1, SYSTEM_RAM_LOW, 0x000000000000L, 0x100); |
|
|
|
EMAP_ENTRY(i, 1, 2, 0x000000000000L + 0x90000000, memorysize_high_n1 >> 20); |
|
|
|
} |
|
|
|
if(memorysize_high_n2) { |
|
|
|
EMAP_ENTRY(i, 2, SYSTEM_RAM_LOW, 0x200000000000L, 0x100); |
|
|
|
EMAP_ENTRY(i, 2, SYSTEM_RAM_HIGH, 0x200000000000L + 0x90000000, memorysize_high_n1 >> 20); |
|
|
|
EMAP_ENTRY(i, 2, SYSTEM_RAM_LOW, 0x000000000000L, 0x100); |
|
|
|
EMAP_ENTRY(i, 2, SYSTEM_RAM_HIGH, 0x000000000000L + 0x90000000, memorysize_high_n1 >> 20); |
|
|
|
} |
|
|
|
if(memorysize_high_n3) { |
|
|
|
EMAP_ENTRY(i, 3, SYSTEM_RAM_LOW, 0x300000000000L, 0x100); |
|
|
|
EMAP_ENTRY(i, 3, SYSTEM_RAM_HIGH, 0x300000000000L + 0x90000000, memorysize_high_n1 >> 20); |
|
|
|
EMAP_ENTRY(i, 3, SYSTEM_RAM_LOW, 0x000000000000L, 0x100); |
|
|
|
EMAP_ENTRY(i, 3, SYSTEM_RAM_HIGH, 0x000000000000L + 0x90000000, memorysize_high_n1 >> 20); |
|
|
|
} |
|
|
|
|
|
|
|
emap->vers = 1; |
|
|
|