added GlobalAlloc

This commit is contained in:
2023-03-23 18:54:13 -04:00
parent 3cb89896eb
commit 2a6da1a7f3
3 changed files with 14 additions and 1 deletions

View File

@@ -73,8 +73,13 @@ pub use libc_print as print;
pub use libc_println as println;
pub use libc_writeln as writeln;
pub use libc_alloc::LibcAlloc;
pub const SOURCE: &str = "https://git.tebibyte.media/emma/spd.git";
#[global_allocator]
pub static ALLOCATOR: LibcAlloc = LibcAlloc;
#[panic_handler]
pub fn panic(info: &panic::PanicInfo) -> ! {
eprintln!("{:?}", info);