接着上个

This commit is contained in:
2026-04-23 20:00:47 +08:00
parent 088dab5a72
commit 43557b6d71
91 changed files with 23911 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#ifndef CLKS_PMM_H
#define CLKS_PMM_H
#include <clks/limine.h>
#include <clks/types.h>
#define CLKS_PAGE_SIZE 4096ULL
struct clks_pmm_stats {
u64 managed_pages;
u64 free_pages;
u64 used_pages;
u64 dropped_pages;
};
void clks_pmm_init(const struct limine_memmap_response *memmap);
u64 clks_pmm_alloc_page(void);
void clks_pmm_free_page(u64 phys_addr);
struct clks_pmm_stats clks_pmm_get_stats(void);
#endif