Skip to content
Snippets Groups Projects
Verified Commit 0b3be2d1 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Write correct value to kernel when exiting thread.

parent 4cb66441
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,6 @@ pub fn exit_this_thread() -> ! { ...@@ -52,6 +52,6 @@ pub fn exit_this_thread() -> ! {
let thread_fd = RtTcb::current().thread_fd(); let thread_fd = RtTcb::current().thread_fd();
// TODO: modify interface so it writes directly to the thread fd? // TODO: modify interface so it writes directly to the thread fd?
let status_fd = syscall::dup(**thread_fd, b"status").unwrap(); let status_fd = syscall::dup(**thread_fd, b"status").unwrap();
syscall::write(status_fd, &0_usize.to_ne_bytes()).unwrap(); syscall::write(status_fd, &usize::MAX.to_ne_bytes()).unwrap();
unreachable!() unreachable!()
} }
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