19 lines
288 B
C
19 lines
288 B
C
#ifndef KMM_H
|
|
#define KMM_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct __attribute__((packed)) {
|
|
uint32_t addr;
|
|
} mem_page_t;
|
|
|
|
void init_pmm(void* mmap_base, uint32_t mmap_limit);
|
|
void init_page_tables();
|
|
void* init_kheap();
|
|
|
|
uint32_t total_free_memory();
|
|
|
|
void* create_user_pd();
|
|
|
|
#endif
|