diff --git a/Targets/Bonito3a780e/Bonito/tgt_machdep.c b/Targets/Bonito3a780e/Bonito/tgt_machdep.c index 7eef41cd..d5278958 100644 --- a/Targets/Bonito3a780e/Bonito/tgt_machdep.c +++ b/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), \ diff --git a/Targets/Bonito3aserver/Bonito/tgt_machdep.c b/Targets/Bonito3aserver/Bonito/tgt_machdep.c index c28ff874..546e99a2 100644 --- a/Targets/Bonito3aserver/Bonito/tgt_machdep.c +++ b/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), \ diff --git a/Targets/Bonito3c780e/Bonito/tgt_machdep.c b/Targets/Bonito3c780e/Bonito/tgt_machdep.c index e64e6732..c7f4eb55 100644 --- a/Targets/Bonito3c780e/Bonito/tgt_machdep.c +++ b/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), \