mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 01:49:26 +02:00
* use different haltproc for arm-linux-eabi, this should be cleaned up by using also pascal units for the startup code for arm-linux
git-svn-id: trunk@12808 -
This commit is contained in:
parent
f97730f73f
commit
4bc28de96f
@ -103,6 +103,15 @@ _haltproc:
|
||||
swi 0x900001
|
||||
b _haltproc
|
||||
|
||||
.globl _haltproc_eabi
|
||||
.type _haltproc_eabi,#function
|
||||
_haltproc_eabi:
|
||||
ldr r0,=operatingsystem_result
|
||||
ldrb r0,[r0]
|
||||
mov r7,#248
|
||||
swi 0x0
|
||||
b _haltproc_eabi
|
||||
|
||||
/* Define a symbol for the first piece of initialized data. */
|
||||
.data
|
||||
.globl __data_start
|
||||
|
@ -53,13 +53,21 @@ _start:
|
||||
bl PASCALMAIN
|
||||
|
||||
.globl _haltproc
|
||||
.type _haltproc,#function
|
||||
.type _haltproc,#function
|
||||
_haltproc:
|
||||
/* r0 contains exitcode */
|
||||
swi 0x900001
|
||||
b _haltproc
|
||||
|
||||
/* Define a symbol for the first piece of initialized data. */
|
||||
.globl _haltproc_eabi
|
||||
.type _haltproc_eabi,#function
|
||||
_haltproc_eabi:
|
||||
/* r0 contains exitcode */
|
||||
mov r7,#248
|
||||
swi 0x0
|
||||
b _haltproc_eabi
|
||||
|
||||
/* Define a symbol for the first piece of initialized data. */
|
||||
.data
|
||||
.globl __data_start
|
||||
__data_start:
|
||||
|
@ -78,6 +78,15 @@ _haltproc:
|
||||
swi 0x900001
|
||||
b _haltproc
|
||||
|
||||
.globl _haltproc_eabi
|
||||
.type _haltproc_eabi,#function
|
||||
_haltproc_eabi:
|
||||
ldr r0,=operatingsystem_result
|
||||
ldrb r0,[r0]
|
||||
mov r7,#248
|
||||
swi 0x0
|
||||
b _haltproc_eabi
|
||||
|
||||
/* Define a symbol for the first piece of initialized data. */
|
||||
.data
|
||||
.globl __data_start
|
||||
|
@ -81,7 +81,11 @@ const calculated_cmdline:Pchar=nil;
|
||||
Misc. System Dependent Functions
|
||||
*****************************************************************************}
|
||||
|
||||
{$if defined(CPUARM) and defined(FPC_ABI_EABI)}
|
||||
procedure haltproc(e:longint);cdecl;external name '_haltproc_eabi';
|
||||
{$else}
|
||||
procedure haltproc(e:longint);cdecl;external name '_haltproc';
|
||||
{$endif}
|
||||
|
||||
procedure System_exit;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user