#ifndef __PAGING_H__ #define __PAGING_H__ #include #include #include #include #include #include #include #include #include #include u32int c_log_phys(u32int logical); void initialise_paging2(); void switch_page_directory(page_directory_t *new); page_t *get_page(u32int address, int make, page_directory_t *dir); int page_fault(struct regs *r); extern page_directory_t *current_directory; extern page_directory_t *kernel_directory; u32int* init_paging3(); extern u32int page_directory[1024] __attribute__((aligned(4096))); extern u32int first_page_table[1024] __attribute__((aligned(4096))); extern void loadPageDirectory(unsigned int*); extern void enablePaging(); extern void disablePaging2(); extern void set_cr0(u32int); extern u32int get_cr0(); extern void set_cr3(u32int); extern u32int get_cr3(); #endif