Compare commits
No commits in common. "bc0c885052787237db4da8c64ec1eefe92e3fb73" and "9199c609489ab6d6dcb12c3b12c4fa531566a6bf" have entirely different histories.
bc0c885052
...
9199c60948
@ -1,17 +1,3 @@
|
||||
use alloc::alloc::{alloc, dealloc, Layout};
|
||||
|
||||
const STACK_SIZE: usize = 4096 * 20;
|
||||
|
||||
pub struct Thread {
|
||||
rsp: u64
|
||||
}
|
||||
|
||||
impl Thread {
|
||||
pub fn new() -> Self {
|
||||
unsafe {
|
||||
Thread {
|
||||
rsp: alloc(Layout::new::<[u8; STACK_SIZE]>()) as u64,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user