not working

This commit is contained in:
2026-01-19 17:18:12 +01:00
parent 30a48d25d2
commit f70f29cea3
5 changed files with 117 additions and 7 deletions

View File

@@ -15,6 +15,10 @@ void mark_pageframes(uintptr_t start, uintptr_t end, bool available){
DBG << "start: " << hex << start << " end: " << end;
start = Page::floor(start);
end = Page::ceil(end);
if(start > 4294967296)
start = 4294967296;
if(end > 4294967296)
end = 4294967296;
DBG << " page start: " << hex << start << " end: " << end << endl;
for(uint64_t i = start; i < end; i += 4096){
@@ -116,7 +120,7 @@ PageFrame* PageFrameAllocator::alloc(bool kernel){
}
else{
search_start = 0x4000000;
search_end = 0x8000000;
search_end = 0x8000000; //TODO find some appropriate value
}
uint64_t free_pageframe=0;