aboutsummaryrefslogtreecommitdiff
path: root/chopstx-gnu-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'chopstx-gnu-linux.c')
-rw-r--r--chopstx-gnu-linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/chopstx-gnu-linux.c b/chopstx-gnu-linux.c
index b7b6767..078f0db 100644
--- a/chopstx-gnu-linux.c
+++ b/chopstx-gnu-linux.c
@@ -146,7 +146,7 @@ chx_handle_intr (uint32_t irq_num)
static ucontext_t idle_tc;
static char idle_stack[4096];
-static struct chx_thread main_thread;
+struct chx_thread main_thread;
void
chx_sigmask (ucontext_t *uc)
@@ -163,6 +163,7 @@ chx_sigmask (ucontext_t *uc)
static void
sigalrm_handler (int sig, siginfo_t *siginfo, void *arg)
{
+ extern void chx_timer_expired (void);
ucontext_t *uc = arg;
(void)sig;
(void)siginfo;
@@ -321,6 +322,7 @@ static struct chx_thread *
chopstx_create_arch (uintptr_t stack_addr, size_t stack_size,
voidfunc thread_entry, void *arg)
{
+ struct chx_thread *tp;
tp = malloc (sizeof (struct chx_thread));
if (!tp)
chx_fatal (CHOPSTX_ERR_THREAD_CREATE);