git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@103 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
d1733a8bd3
commit
8d478094e0
|
@ -37,17 +37,21 @@
|
||||||
.globl threadstart
|
.globl threadstart
|
||||||
threadstart:
|
threadstart:
|
||||||
msr CPSR_c, #MODE_SYS
|
msr CPSR_c, #MODE_SYS
|
||||||
mov r0, r5
|
|
||||||
#ifndef PURE_THUMB
|
#ifndef PURE_THUMB
|
||||||
|
mov r0, r5
|
||||||
mov lr, pc
|
mov lr, pc
|
||||||
bx r4
|
bx r4
|
||||||
bl chThdExit
|
bl chThdExit
|
||||||
#else
|
#else
|
||||||
|
ldr r0, =.L1
|
||||||
|
bx r0
|
||||||
|
.code 16
|
||||||
|
.L1:
|
||||||
|
mov r0, r5
|
||||||
mov lr, pc
|
mov lr, pc
|
||||||
bx r4
|
bx r4
|
||||||
.code 16
|
bl chThdExit
|
||||||
ldr r4, =chThdExit
|
.code 32
|
||||||
bx r4
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
.globl UndHandler
|
.globl UndHandler
|
||||||
|
|
Loading…
Reference in New Issue