diff options
Diffstat (limited to 'src/aplos.h')
-rw-r--r-- | src/aplos.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |