put memory map detection into paging.c (grub_memory_map function)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define PAGING_H
|
||||
|
||||
#include "../include/stdio.h"
|
||||
#include "../include/multiboot.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#define PAGE_OFFSET 0xC0000000
|
||||
@@ -26,6 +27,7 @@ extern uint32_t kernel_page_table[1024] __attribute__((aligned(4096)));
|
||||
extern uint32_t user_page_table[1024] __attribute__((aligned(4096)));
|
||||
|
||||
//paging.c
|
||||
void grub_memory_map(unsigned int magic, struct multiboot_info* mbi);
|
||||
void enablePaging();
|
||||
void loadPageDirectory(uint32_t* page_directory);
|
||||
void paging_init();
|
||||
|
||||
Reference in New Issue
Block a user