|
@@ -341,12 +341,12 @@ void init_stage2(void*)
|
|
|
// NOTE: Everything marked READONLY_AFTER_INIT becomes non-writable after this point.
|
|
|
MM.protect_readonly_after_init_memory();
|
|
|
|
|
|
- // NOTE: Everything marked UNMAP_AFTER_INIT becomes inaccessible after this point.
|
|
|
- MM.unmap_text_after_init();
|
|
|
-
|
|
|
// NOTE: Everything in the .ksyms section becomes read-only after this point.
|
|
|
MM.protect_ksyms_after_init();
|
|
|
|
|
|
+ // NOTE: Everything marked UNMAP_AFTER_INIT becomes inaccessible after this point.
|
|
|
+ MM.unmap_text_after_init();
|
|
|
+
|
|
|
// FIXME: It would be nicer to set the mode from userspace.
|
|
|
// FIXME: It would be smarter to not hardcode that the first tty is the only graphical one
|
|
|
ConsoleManagement::the().first_tty()->set_graphical(GraphicsManagement::the().framebuffer_devices_exist());
|