mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
3ds: 3ds port sources. First set of two
This commit adds changes to the original rockbox sources. Note: the port files, functions, folders, etc., will be referred to as 'ctru' to avoid using the Nintendo name elsewhere. Change-Id: I0e2d3d4d2a75bd45ea67dc3452eb8d5487cf1f5a
This commit is contained in:
parent
511a38763b
commit
a4de1195cd
25 changed files with 227 additions and 23 deletions
|
|
@ -75,11 +75,15 @@ void mutex_lock(struct mutex *m)
|
|||
/* Release ownership of a mutex object - only owning thread must call this */
|
||||
void mutex_unlock(struct mutex *m)
|
||||
{
|
||||
#ifndef CTRU
|
||||
/* FIXME: synchronization primitives does not behave
|
||||
correctly between different cores */
|
||||
/* unlocker not being the owner is an unlocking violation */
|
||||
KERNEL_ASSERT(m->blocker.thread == __running_self_entry(),
|
||||
"mutex_unlock->wrong thread (%s != %s)\n",
|
||||
m->blocker.thread->name,
|
||||
__running_self_entry()->name);
|
||||
#endif
|
||||
|
||||
if(m->recursion > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue