acadia/zion/memory/kernel_heap.h
Drew Galbraith 0b7e667368 Add a basic kernel heap object.
Currently allocation always fails because we don't
have a way to allocate a physical page.
2023-05-18 10:59:39 -07:00

14 lines
217 B
C++

#pragma once
#include <stdint.h>
class KernelHeap {
public:
KernelHeap(uint64_t lower_bound, uint64_t upper_bound);
void* Allocate(uint64_t size);
private:
uint64_t next_addr_;
uint64_t upper_bound_;
};