Use chx_running function.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2019-11-19 08:40:38 +09:00
parent 2180ed24be
commit c73258138c
3 changed files with 47 additions and 7 deletions

View File

@@ -28,6 +28,15 @@
*
*/
static struct chx_thread *running;
static struct chx_thread *
chx_running (void)
{
return running;
}
/* Data Memory Barrier. */
static void
chx_dmb (void)
@@ -278,6 +287,7 @@ static void
chx_init_arch (struct chx_thread *tp)
{
memset (&tp->tc, 0, sizeof (tp->tc));
running = tp;
}
static void