summaryrefslogtreecommitdiff
path: root/entry.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2013-06-04 14:42:26 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2013-06-04 14:42:26 +0900
commit8056415dd270d9bd555302b1e04be2376591218d (patch)
tree985aeacc923daf1e3a7e7db1a71880239d880c38 /entry.c
parentba594d5eaebe0885b09f9633b58ae55b1b03b246 (diff)
add cleanup rouines
Diffstat (limited to 'entry.c')
-rw-r--r--entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/entry.c b/entry.c
index 1b6d65e..7c1169b 100644
--- a/entry.c
+++ b/entry.c
@@ -287,8 +287,8 @@ void entry (void)
"3:\n\t"
/* Switch to PSP. */
"ldr r0, =__process0_stack_end__\n\t"
- "sub r0, #56\n\t"
- "msr PSP, r0\n\t" /* Process (main routine) stack */
+ "sub r0, #60\n\t" /* Size of struct chx_thread. */
+ "msr PSP, r0\n\t" /* Process (main routine) stack. */
"mov r1, #2\n\t"
"msr CONTROL, r1\n\t"
"isb\n\t"