mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 00:42:06 +02:00
* load exit code in _haltproc for thumb
git-svn-id: trunk@24191 -
This commit is contained in:
parent
f25a905904
commit
a86531c225
@ -115,6 +115,9 @@ _start:
|
||||
_haltproc:
|
||||
/* r0 contains exitcode */
|
||||
.ifdef __thumb__
|
||||
ldr r0,=operatingsystem_result
|
||||
ldr r0,[r0]
|
||||
mov r7,#248 /* exit group call */
|
||||
swi 0x0
|
||||
.else
|
||||
swi 0x900001
|
||||
|
Loading…
Reference in New Issue
Block a user