- dump_avail layout should be sequence of [start, end)
pairs, not <start, size>. Spotted by: alc@
This commit is contained in:
parent
48772ca4aa
commit
bd01e50ca0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216320
@ -98,7 +98,7 @@ mips_init(void)
|
||||
phys_avail[1] = ctob(realmem);
|
||||
|
||||
dump_avail[0] = phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1] - phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1];
|
||||
|
||||
physmem = realmem;
|
||||
|
||||
|
@ -98,7 +98,7 @@ mips_init(void)
|
||||
phys_avail[1] = ctob(realmem);
|
||||
|
||||
dump_avail[0] = phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1] - phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1];
|
||||
|
||||
physmem = realmem;
|
||||
|
||||
|
@ -275,7 +275,7 @@ octeon_memory_init(void)
|
||||
phys_avail[1] = 96 << 20;
|
||||
|
||||
dump_avail[0] = phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1] - phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1];
|
||||
|
||||
realmem = physmem = btoc(phys_avail[1] - phys_avail[0]);
|
||||
return;
|
||||
@ -317,10 +317,8 @@ octeon_memory_init(void)
|
||||
i += 2;
|
||||
}
|
||||
|
||||
for (j = 0; j < i; j += 2) {
|
||||
for (j = 0; j < i; j++)
|
||||
dump_avail[j] = phys_avail[j];
|
||||
dump_avail[j+1] = phys_avail[j+1] - phys_avail[j];
|
||||
}
|
||||
|
||||
realmem = physmem;
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ platform_start(__register_t a0, __register_t a1,
|
||||
phys_avail[1] = ctob(realmem);
|
||||
|
||||
dump_avail[0] = phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1] - phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1];
|
||||
|
||||
physmem = realmem;
|
||||
|
||||
|
@ -182,7 +182,7 @@ mips_init(void)
|
||||
phys_avail[1] = ctob(realmem);
|
||||
|
||||
dump_avail[0] = phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1] - phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1];
|
||||
|
||||
physmem = realmem;
|
||||
|
||||
|
@ -363,8 +363,8 @@ xlr_mem_init(void)
|
||||
(void *)phys_avail[0],
|
||||
(void *)phys_avail[1]);
|
||||
|
||||
dump_avail[0] = boot_map->physmem_map[0].addr;
|
||||
dump_avail[1] = boot_map->physmem_map[0].size;
|
||||
dump_avail[0] = phys_avail[0];
|
||||
dump_avail[1] = phys_avail[1];
|
||||
|
||||
} else {
|
||||
/*
|
||||
@ -394,8 +394,8 @@ xlr_mem_init(void)
|
||||
(void *)phys_avail[j+1]);
|
||||
}
|
||||
|
||||
dump_avail[j] = boot_map->physmem_map[j].addr;
|
||||
dump_avail[j+1] = boot_map->physmem_map[j].size;
|
||||
dump_avail[j] = phys_avail[j];
|
||||
dump_avail[j+1] = phys_avail[j+1];
|
||||
|
||||
physsz += boot_map->physmem_map[i].size;
|
||||
}
|
||||
|
@ -128,10 +128,8 @@ mips_init(void)
|
||||
realmem = btoc(physmem);
|
||||
#endif
|
||||
|
||||
for (j = 0; j < i; j += 2) {
|
||||
for (j = 0; j < i; j++)
|
||||
dump_avail[j] = phys_avail[j];
|
||||
dump_avail[j+1] = phys_avail[j+1] - phys_avail[j];
|
||||
}
|
||||
|
||||
physmem = realmem;
|
||||
|
||||
|
@ -225,10 +225,8 @@ mips_init(void)
|
||||
realmem = btoc(physmem);
|
||||
#endif
|
||||
|
||||
for (j = 0; j < i; j += 2) {
|
||||
for (j = 0; j < i; j++)
|
||||
dump_avail[j] = phys_avail[j];
|
||||
dump_avail[j+1] = phys_avail[j+1] - phys_avail[j];
|
||||
}
|
||||
|
||||
physmem = realmem;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user