Fix IDLE thread

This commit is contained in:
NIIBE Yutaka
2016-05-27 16:19:02 +09:00
parent 890d108114
commit f2a8b01607
3 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2016-05-27 NIIBE Yutaka <gniibe@fsij.org>
* chopstx.c (preempt): Fix IDLE thread stack pointer.
2016-05-26 NIIBE Yutaka <gniibe@fsij.org>
* entry.c: Follow the move of clk_gpio_init*.c

View File

@@ -2017,7 +2017,7 @@ preempt (void)
"bx r0\n"
"1:\n\t"
/* Spawn an IDLE thread. */
"ldr r0, =__main_stack_end__-32\n\t"
"ldr r0, =__main_stack_end__\n\t"
"msr PSP, r0\n\t"
"mov r1, #0\n\t"
"mov r2, #0\n\t"