Browse Source

fix single 8G dimm take as 4G on 3a780e,3c780e,3aserver

master
huang pei 11 years ago
committed by wanghongmei
parent
commit
722be34204
  1. 2
      Targets/Bonito3a780e/Bonito/tgt_machdep.c
  2. 2
      Targets/Bonito3aserver/Bonito/tgt_machdep.c
  3. 2
      Targets/Bonito3c780e/Bonito/tgt_machdep.c

2
Targets/Bonito3a780e/Bonito/tgt_machdep.c

@ -3074,7 +3074,7 @@ struct efi_memory_map_loongson * init_memory_map()
{
struct efi_memory_map_loongson *emap = &g_map;
int i = 0;
unsigned long size = memorysize_high;
unsigned long long size = memorysize_high;
#define EMAP_ENTRY(entry, node, type, start, size) \
emap->map[(entry)].node_id = (node), \

2
Targets/Bonito3aserver/Bonito/tgt_machdep.c

@ -3079,7 +3079,7 @@ struct efi_memory_map_loongson * init_memory_map()
{
struct efi_memory_map_loongson *emap = &g_map;
int i = 0;
unsigned long size = memorysize_high;
unsigned long long size = memorysize_high;
#define EMAP_ENTRY(entry, node, type, start, size) \
emap->map[(entry)].node_id = (node), \

2
Targets/Bonito3c780e/Bonito/tgt_machdep.c

@ -3173,7 +3173,7 @@ struct efi_memory_map_loongson * init_memory_map()
{
struct efi_memory_map_loongson *emap = &g_map;
int i = 0;
unsigned long size = memorysize_high;
unsigned long long size = memorysize_high;
#define EMAP_ENTRY(entry, node, type, start, size) \
emap->map[(entry)].node_id = (node), \

Loading…
Cancel
Save