aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-27 16:19:02 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-27 16:19:02 +0900
commitf2a8b01607aca8f41cc5f50b18bea74d65766731 (patch)
treea5c53b1f91880fe9d8f5a96b1c88023aec91d71d
parent890d108114544ef59b7c92f8c95109c0ba18d0ec (diff)
Fix IDLE thread
-rw-r--r--ChangeLog4
-rw-r--r--chopstx.c2
-rw-r--r--example-fs-bb48/sys.c (renamed from example-fs-bb48/first-pages.c)0
3 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bb1d6c2..4baf8bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/chopstx.c b/chopstx.c
index 19316ac..2467cbc 100644
--- a/chopstx.c
+++ b/chopstx.c
@@ -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"
diff --git a/example-fs-bb48/first-pages.c b/example-fs-bb48/sys.c
index a587098..a587098 100644
--- a/example-fs-bb48/first-pages.c
+++ b/example-fs-bb48/sys.c