Implement Heap allocation (#3)

* Implement Maloc

* Implement Dealloc

* Migrate to a struct based heap implementation
This commit is contained in:
Alexander Neuhäuser
2025-09-14 18:17:24 +02:00
committed by GitHub
parent 981a6cd65c
commit afe1128139
9 changed files with 265 additions and 71 deletions

View File

@@ -23,9 +23,9 @@ pub mod peripherals;
pub mod configuration;
pub mod framebuffer;
pub mod heap;
pub mod irq_interrupt;
pub mod mailbox;
pub mod math;
pub mod timer;
pub fn mmio_read(address: u32) -> u32 {
@@ -39,4 +39,6 @@ pub fn mmio_write(address: u32, data: u32) {
#[derive(Debug)]
pub enum NovaError {
Mailbox,
HeapFull,
EmptyHeapSegmentNotAllowed,
}