mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Correctly set process.inner on riscv
This changes the process.inner.pid to the correct PID. Before, it was simply 1. This lead to problems, for example when sending messages where an assert checks to make sure that the current PID and the process PID are the same. Now, you can send messages from a new process.
This commit is contained in:
parent
fe73bb40e7
commit
dc9411669c
1 changed files with 1 additions and 0 deletions
|
|
@ -365,6 +365,7 @@ impl Process {
|
|||
}
|
||||
|
||||
process.inner = Default::default();
|
||||
process.inner.pid = pid;
|
||||
|
||||
// Mark the stack as "unallocated-but-free"
|
||||
let init_sp = (thread_init.stack.as_ptr() as usize) & !0xfff;
|
||||
|
|
|
|||
Loading…
Reference in a new issue