mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
Add basic paging. Only identity maps the bottom 4MB as a start.
This commit is contained in:
parent
286e27ef40
commit
77299cf54d
5 changed files with 230 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue