rt: Add an assert to rust_get_current_task
This commit is contained in:
parent
fa88d15d63
commit
dd63c5ef1d
1 changed files with 1 additions and 0 deletions
|
|
@ -463,6 +463,7 @@ inline rust_task* rust_get_current_task() {
|
|||
|
||||
// Make sure we've calculated the right address
|
||||
::check_stack_canary(stk);
|
||||
assert(stk->task != NULL && "task pointer not in stack structure");
|
||||
return stk->task;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue