kernel: extend kernel heap sbrk sanity check
We use sbrk() to set up the memory for physical page reference counting, and the previous limit was causing panics on boot with >60GB of RAM. Oops.
This commit is contained in:
parent
e68f69c18d
commit
cac1eca676
@ -996,7 +996,7 @@ void * sbrk(size_t bytes) {
|
||||
arch_fatal();
|
||||
}
|
||||
|
||||
if (bytes > 0xF00000) {
|
||||
if (bytes > 0x1F00000) {
|
||||
arch_fatal_prepare();
|
||||
printf("sbrk: Size must be within a reasonable bound, was %#zx\n", bytes);
|
||||
arch_dump_traceback();
|
||||
|
Loading…
Reference in New Issue
Block a user