Add a uniq test module for yunq in rust.

This commit is contained in:
Drew Galbraith 2024-08-29 21:27:27 -07:00
parent c1db6cb11f
commit 4ee8dc924c
13 changed files with 132 additions and 10 deletions

View file

@ -2,13 +2,17 @@ use crate::cap::Capability;
use crate::syscall;
use crate::zion::ZError;
use alloc::slice;
#[cfg(feature = "hosted")]
use linked_list_allocator::LockedHeap;
#[cfg(feature = "hosted")]
#[global_allocator]
static ALLOCATOR: LockedHeap = LockedHeap::empty();
pub static mut CAN_ALLOC: bool = false;
#[cfg(feature = "hosted")]
pub fn init_heap() {
// 1 MiB
let size = 0x10_0000;