Compare commits

..
0 Commits
-14
View File
@@ -1,17 +1,3 @@
use alloc::alloc::{alloc, dealloc, Layout};
const STACK_SIZE: usize = 4096 * 20;
pub struct Thread { pub struct Thread {
rsp: u64 rsp: u64
}
impl Thread {
pub fn new() -> Self {
unsafe {
Thread {
rsp: alloc(Layout::new::<[u8; STACK_SIZE]>()) as u64,
}
}
}
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.