From ca84afb315e813f08d725082320d40969b9f93e4 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sun, 27 Jul 2025 19:34:35 +0200 Subject: Small tweaks --- src/aplos.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/aplos.h') diff --git a/src/aplos.h b/src/aplos.h index d9d6cdb..7d3fce0 100644 --- a/src/aplos.h +++ b/src/aplos.h @@ -22,8 +22,11 @@ struct memmap struct boot_info { struct framebuffer framebuffer; + uint64_t memmap_count; struct memmap *memmaps; + + uint64_t physbase; }; /* boot.c */ @@ -50,9 +53,11 @@ void enable_interrupts(void); void set_gdt(struct table_reg *, uint64_t, uint64_t, uint64_t); void set_idt(struct table_reg *); uint64_t get_cr2(void); +uint64_t get_cr3(void); extern void (*isr_stubs[32])(void); /* paging.c */ +void setup_paging(struct boot_info *); bool page_fault_handler(uint32_t); /* panic.c */ -- cgit v1.2.3