mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-07 05:10:52 +01:00
* use exit_group syscall to also stop all threads
git-svn-id: trunk@1259 -
This commit is contained in:
parent
1b6364ceba
commit
da9ea7ff88
@ -57,8 +57,7 @@ _haltproc2: # GAS <= 2.15 bug: generates larger jump if a label is e
|
||||
pushl %ebx
|
||||
call exit /* call libc exit, this will */
|
||||
/* write the gmon.out */
|
||||
xorl %eax,%eax
|
||||
incl %eax /* eax=1, exit call */
|
||||
movl $252,%eax /* exit_group */
|
||||
popl %ebx
|
||||
int $0x80
|
||||
jmp _haltproc2
|
||||
|
||||
@ -70,8 +70,7 @@ _start:
|
||||
.type _haltproc,@function
|
||||
_haltproc:
|
||||
_haltproc2: # GAS <= 2.15 bug: generates larger jump if a label is exported
|
||||
xorl %eax,%eax
|
||||
incl %eax /* eax=1, exit call */
|
||||
movl $252,%eax /* exit_group */
|
||||
movzwl operatingsystem_result,%ebx
|
||||
int $0x80
|
||||
jmp _haltproc2
|
||||
|
||||
@ -55,7 +55,7 @@ _start:
|
||||
.globl _haltproc
|
||||
.type _haltproc,@function
|
||||
_haltproc:
|
||||
movl $60,%eax /* exit call */
|
||||
movl $231,%eax /* exit_group call */
|
||||
movzwl operatingsystem_result,%edi
|
||||
syscall
|
||||
jmp _haltproc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user