Browse Source

revert previous node address offset, use relative address within the node

Target: 3aserver, 3cserver, 3c780e
master
Huang Pei 11 years ago
committed by wanghongmei
parent
commit
d55ed67013
  1. 4
      Targets/Bonito3aserver/Bonito/tgt_machdep.c
  2. 4
      Targets/Bonito3c780e/Bonito/tgt_machdep.c
  3. 12
      Targets/Bonito3cserver/Bonito/tgt_machdep.c

4
Targets/Bonito3aserver/Bonito/tgt_machdep.c

@ -3103,8 +3103,8 @@ 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, SYSTEM_RAM_HIGH, 0x100000000000L + 0x90000000, memorysize_high_n1 >> 20);
EMAP_ENTRY(i, 1, SYSTEM_RAM_LOW, 0x00000000000L, 0x100);
EMAP_ENTRY(i, 1, SYSTEM_RAM_HIGH, 0x00000000000L + 0x90000000, memorysize_high_n1 >> 20);
}

4
Targets/Bonito3c780e/Bonito/tgt_machdep.c

@ -3197,8 +3197,8 @@ 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, SYSTEM_RAM_HIGH, 0x100000000000L + 0x90000000, memorysize_high_n1 >> 20);
EMAP_ENTRY(i, 1, SYSTEM_RAM_LOW, 0x000000000000L, 0x100);
EMAP_ENTRY(i, 1, SYSTEM_RAM_HIGH, 0x000000000000L + 0x90000000, memorysize_high_n1 >> 20);
}

12
Targets/Bonito3cserver/Bonito/tgt_machdep.c

@ -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;

Loading…
Cancel
Save