kv2: add paging
this also fixes up a bunch of formatting, adding the type vaddr_t Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
27a7f3de75
commit
d6873d6c7a
18 changed files with 130 additions and 66 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <kernel/mem.h>
|
||||
#include <kernel/device.h>
|
||||
#include <kernel/requests.h>
|
||||
#include <arch/init.h>
|
||||
|
||||
#include <kernel/page.h>
|
||||
|
||||
|
|
@ -15,6 +16,8 @@
|
|||
#include <lib/stdio.h>
|
||||
#include <lib/rbtree.h>
|
||||
|
||||
#define P_STACK_SIZE 0x8000
|
||||
|
||||
struct tty *tty_printf = NULL;
|
||||
|
||||
void kmain()
|
||||
|
|
@ -23,6 +26,10 @@ void kmain()
|
|||
requests_init();
|
||||
mem_init();
|
||||
buddy_init();
|
||||
|
||||
void *ap_stack = buddy_alloc(P_STACK_SIZE);
|
||||
arch_stack_init(ap_stack, P_STACK_SIZE);
|
||||
|
||||
rbt_slab_init();
|
||||
device_layer_init();
|
||||
tty_layer_init();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ struct limine_executable_address_response *kern_addr_res = NULL;
|
|||
struct limine_memmap_response *kern_map_res = NULL;
|
||||
struct limine_hhdm_response *kern_hhdm_res = NULL;
|
||||
|
||||
uintptr_t hhdm_start = 0;
|
||||
vaddr_t hhdm_start = 0;
|
||||
|
||||
void requests_init()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue