mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Add basic paging. Only identity maps the bottom 4MB as a start.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <VirtualFileSystem/VirtualFileSystem.h>
|
||||
#include <VirtualFileSystem/FileHandle.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include "MemoryManager.h"
|
||||
|
||||
#if 0
|
||||
/* Keyboard LED disco task ;^) */
|
||||
@@ -67,7 +68,7 @@ static void user_main()
|
||||
DO_SYSCALL_A3(0x3000, 2, 3, 4);
|
||||
// Crash ourselves!
|
||||
char* x = reinterpret_cast<char*>(0xbeefbabe);
|
||||
*x = 1;
|
||||
//*x = 1;
|
||||
//HANG;
|
||||
for (;;) {
|
||||
// nothing?
|
||||
@@ -103,6 +104,8 @@ void init()
|
||||
gdt_init();
|
||||
idt_init();
|
||||
|
||||
MemoryManager::initialize();
|
||||
|
||||
// Anything that registers interrupts goes *after* PIC and IDT for obvious reasons.
|
||||
Syscall::initialize();
|
||||
PIT::initialize();
|
||||
|
||||
Reference in New Issue
Block a user