Skip to content
Snippets Groups Projects
Verified Commit b2cc25dd authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix missing import

parent 6d4ac9db
No related branches found
No related tags found
No related merge requests found
Pipeline #3886 failed
......@@ -172,6 +172,7 @@ impl Tcb {
/// OS specific code to create a new TLS and TCB - Redox
#[cfg(target_os = "redox")]
unsafe fn os_new(size: usize) -> Result<(&'static mut [u8], &'static mut [u8])> {
use header::unistd;
//TODO: better method of finding fs offset
let pid = unistd::getpid();
let tcb_addr = 0xB000_0000 + pid as usize * PAGE_SIZE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment