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:
K. Lange 2021-12-12 12:55:09 +09:00
parent e68f69c18d
commit cac1eca676

View File

@ -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();