diff --git a/Targets/Bonito3aserver/Bonito/tgt_machdep.c b/Targets/Bonito3aserver/Bonito/tgt_machdep.c index 546e99a2..0d40246c 100644 --- a/Targets/Bonito3aserver/Bonito/tgt_machdep.c +++ b/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); } diff --git a/Targets/Bonito3c780e/Bonito/tgt_machdep.c b/Targets/Bonito3c780e/Bonito/tgt_machdep.c index c7f4eb55..eda29f8f 100644 --- a/Targets/Bonito3c780e/Bonito/tgt_machdep.c +++ b/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); } diff --git a/Targets/Bonito3cserver/Bonito/tgt_machdep.c b/Targets/Bonito3cserver/Bonito/tgt_machdep.c index d745a4ab..468f3583 100644 --- a/Targets/Bonito3cserver/Bonito/tgt_machdep.c +++ b/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;