forked from len0rd/rockbox
Add CPU mode asserts to kernel on blocking functions.
This scourge finds it's way back in far too often. Right now, only defined for ARM. Have fun! Change-Id: Ib21be09ebf71dec10dc652a7a664779251f49644
This commit is contained in:
parent
da46457231
commit
3e73866110
7 changed files with 54 additions and 1 deletions
|
|
@ -57,6 +57,8 @@ int semaphore_wait(struct semaphore *s, int timeout)
|
|||
}
|
||||
else if(timeout != 0)
|
||||
{
|
||||
ASSERT_CPU_MODE(CPU_MODE_THREAD_CONTEXT, oldlevel);
|
||||
|
||||
/* too many waits - block until count is upped... */
|
||||
struct thread_entry *current = __running_self_entry();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue