This commit is contained in:
mtgmonkey
2025-07-29 09:46:44 -04:00
commit 147702a8fa
14 changed files with 1020 additions and 0 deletions

10
src/alloc/mod.rs Normal file
View File

@@ -0,0 +1,10 @@
use core::alloc::{GlobalAlloc, Layout};
use core::ptr::null_mut;
pub struct Allocator;
unsafe impl GlobalAlloc for Allocator {
unsafe fn alloc(&self, _layout: Layout) -> *mut u8 {
return null_mut();
}
unsafe fn dealloc(&self, _ptr: *mut u8, _layout: Layout) {}
}