diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-26 00:52:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-26 11:26:39 +0100 |
commit | 7757d874adc269dce5b6ee44792b6c5a3841ff58 (patch) | |
tree | bf490f33306cd8564db568a7d8ca9293ccb57090 /Kernel/init.cpp | |
parent | 1c99f99e995e348ffb5f7726c4f068f66ab08aa4 (diff) | |
download | serenity-7757d874adc269dce5b6ee44792b6c5a3841ff58.zip |
Kernel: Assert that a KmallocSubheap fits inside a page
Since we allocate the subheap in the first page of the given storage
let's assert that the subheap can actually fit in a single page, to
prevent the possible future headache of trying to debug the cause of
random kernel memory corruption :^)
Diffstat (limited to 'Kernel/init.cpp')
0 files changed, 0 insertions, 0 deletions