From fe6232c981ef7f2eb13888897cd51655852bb547 Mon Sep 17 00:00:00 2001 From: Himanshu Chauhan Date: Fri, 20 May 2011 09:22:05 +0530 Subject: [PATCH] Half way debug code of context switching. Main thread comes up but the secondary threads doesn't get scheduled. Signed-off-by: Himanshu Chauhan --- ports/mips/tests-main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/mips/tests-main.c b/ports/mips/tests-main.c index 6a9cabc..ac747f1 100644 --- a/ports/mips/tests-main.c +++ b/ports/mips/tests-main.c @@ -120,6 +120,7 @@ /* Application threads' TCBs */ static ATOM_TCB main_tcb; +static ATOM_TCB secondary_tcb; /* Main thread's stack area */ static uint8_t main_thread_stack[MAIN_STACK_SIZE_BYTES] __attribute__((aligned (4))); @@ -129,6 +130,7 @@ static uint8_t idle_thread_stack[IDLE_STACK_SIZE_BYTES] __attribute__((aligned ( /* Forward declarations */ static void main_thread_func (uint32_t data); +static void secondary_thread_func (uint32_t data); /** * \b main