add c skeleton
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#ifndef _PAGEFRAME_H_
|
||||
#define _PAGEFRAME_H_
|
||||
class PageFrame {
|
||||
private:
|
||||
public:
|
||||
PageFrame();
|
||||
};
|
||||
#endif
|
||||
|
||||
19
kernel/memory/pageframealloc.cc
Normal file
19
kernel/memory/pageframealloc.cc
Normal 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){
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user