Now working on a new paging system

This commit is contained in:
Adrien Bourmault 2020-01-09 00:31:22 +01:00
parent 6785767528
commit 675063840f
3 changed files with 8 additions and 8 deletions

View File

@ -75,3 +75,4 @@ SECTIONS {
kernelEnd = .; kernelEnd = .;
} }

View File

@ -62,21 +62,19 @@ noreturn void BtStartKern(multiboot_info_t *mbInfo, uint mbMagic, void *codeSeg)
// Memory // Memory
MmInitMemoryMap(); MmInitMemoryMap();
MmInitPaging();
MmInitHeap();
MmInitGdt(); MmInitGdt();
MmInitHeap();
MmInitPaging();
// Basics for interrupts // IDT
KeSetupIDT(); KeSetupIDT();
KeEnableIRQs(); KeEnableIRQs();
// Interrupt handlers
MmActivatePageHandler();
KeEnableRTC(); KeEnableRTC();
KeEnablePIT(); KeEnablePIT();
KeGetCpuInfos(); KeGetCpuInfos();
// Memory (2)
MmActivatePageHandler();
// Drivers
IoEnableKeyb(); IoEnableKeyb();
// Command line (kernel mode) // Command line (kernel mode)

View File

@ -22,6 +22,7 @@ enum
#define RAM_MAX 32 #define RAM_MAX 32
#define NB_4K 150 #define NB_4K 150
// * 2 MB // * 2 MB
#define USERSPACE 0x40000000
//----------- //-----------