Major refactor of codebase
This commit is contained in:
parent
dbc6dc0d7c
commit
f478f8d38b
125 changed files with 195 additions and 29519 deletions
13
include/mm/pmm.h
Normal file
13
include/mm/pmm.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define BLOCK_SIZE 4096
|
||||
|
||||
typedef struct free_page_t {
|
||||
struct free_page_t *next;
|
||||
uint8_t _padding[4088];
|
||||
} __attribute((packed)) free_page_t;
|
||||
|
||||
void pmm_init(void);
|
||||
uint64_t *pmm_alloc();
|
||||
void pmm_free(uint64_t *addr);
|
||||
Loading…
Add table
Add a link
Reference in a new issue