mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: don't allow allocating exception thread
This prevents the exception thread from being allocated as a normal system thread. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
353311b987
commit
e29dc5a739
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ impl Process {
|
|||
tid -= process.threads.len()
|
||||
}
|
||||
|
||||
if tid != IRQ_TID && thread.sepc == 0 {
|
||||
if tid != IRQ_TID && tid != EXCEPTION_TID && thread.sepc == 0 {
|
||||
process.last_tid_allocated = tid as _;
|
||||
return Some(tid as TID);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue