Initial commit

This commit is contained in:
ssimnb 2026-03-04 07:19:48 +01:00
commit ef80f65fbf
136 changed files with 13728 additions and 0 deletions

13
include/mm/pmm.h Normal file
View 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);