chx_running for GNU/Linux port.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka
2019-11-20 11:24:21 +09:00
parent c73258138c
commit bdbc84ba18
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2019-11-20 NIIBE Yutaka <gniibe@fsij.org>
* chopstx-gnu-linux.c (chx_running): New.
(chx_init_arch): Set RUNNING.
2019-11-19 NIIBE Yutaka <gniibe@fsij.org>
* chopstx-cortex-m.c (chx_running): New.

View File

@@ -32,6 +32,14 @@
#include <signal.h>
#include <sys/time.h>
static struct chx_thread *running;
static struct chx_thread *
chx_running (void)
{
return running;
}
/* Data Memory Barrier. */
static void
chx_dmb (void)
@@ -205,6 +213,8 @@ chx_init_arch (struct chx_thread *tp)
makecontext (&idle_tc, idle, 0);
getcontext (&tp->tc);
running = tp;
}
static void