mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
Kernel: Print if image has become too large again
Instead of just disabling interrupts and halting when entering the C++ section, just halt with a printed message indicating the error.
This commit is contained in:
parent
a95b726fd8
commit
cc98871383
2 changed files with 88 additions and 58 deletions
|
@ -107,11 +107,6 @@ static Processor s_bsp_processor; // global but let's keep it "private"
|
|||
|
||||
extern "C" [[noreturn]] UNMAP_AFTER_INIT void init()
|
||||
{
|
||||
if ((FlatPtr)&end_of_kernel_image >= 0xc2000000u) {
|
||||
// The kernel has grown too large again!
|
||||
asm volatile("cli;hlt");
|
||||
}
|
||||
|
||||
g_in_early_boot = true;
|
||||
setup_serial_debug();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue