add c skeleton

This commit is contained in:
2026-01-09 20:56:11 +01:00
parent 15c861c81d
commit 3e91c055db
3 changed files with 26 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
#ifndef _PAGEFRAME_H_
#define _PAGEFRAME_H_
class PageFrame {
private:
public:
PageFrame();
};
#endif

View File

@@ -0,0 +1,19 @@
#include "../memory/pageframealloc.h"
#include <cstdint>
#include "pageframe.h"
void PageFrameAllocator::init(){
}
void PageFrameAllocator::stats(){
}
PageFrame* PageFrameAllocator::alloc(bool kernel){
return 0;
}
void PageFrameAllocator::free(PageFrame* frame){
}
void PageFrameAllocator::free(uintptr_t addr){
}

View File

@@ -1,3 +1,6 @@
#ifndef _PAGEFRAMEALLOC_H_
#define _PAGEFRAMEALLOC_H_
#include <cstdint>
#include "../memory/pageframe.h"
@@ -9,3 +12,4 @@ namespace PageFrameAllocator {
void free (PageFrame *frame);
void free (uintptr_t addr);
}
#endif