summaryrefslogtreecommitdiff
path: root/rtl/nds/cprt07.as
diff options
context:
space:
mode:
authorLegolas <Legolas@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-01-18 16:05:44 +0000
committerLegolas <Legolas@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-01-18 16:05:44 +0000
commit629d6dc1ae8373f766cca72f672588d09534052c (patch)
tree08c12b80084e6a2d07bd620525c1064702da1e23 /rtl/nds/cprt07.as
parentd26aa3ac03ac55364ff880981b19489877d77d51 (diff)
downloadfpc-629d6dc1ae8373f766cca72f672588d09534052c.tar.gz
* Changes to compiler and rtl to make it compatible with devkitARM r24
* First attempt to implement a sort of generic "gate" for adding different file access methods * Optimized heap and stack handling git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@12562 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/nds/cprt07.as')
-rw-r--r--rtl/nds/cprt07.as9
1 files changed, 7 insertions, 2 deletions
diff --git a/rtl/nds/cprt07.as b/rtl/nds/cprt07.as
index 0f9a2eea17..c795e68e93 100644
--- a/rtl/nds/cprt07.as
+++ b/rtl/nds/cprt07.as
@@ -28,18 +28,23 @@ _start:
bl ClearMem
ldr r3, =__libc_init_array @ global constructors
- bl _call_via_r3
+ bl _blx_r3_stub
mov r0, #0 @ int argc
mov r1, #0 @ char *argv[]
ldr r3, =main
- bl _call_via_r3 @ jump to user code
+ bl _blx_r3_stub
@ If the user ever returns, return to flash cartridge
mov r0, #0x08000000
bx r0
@---------------------------------------------------------------------------------
+ _blx_r3_stub:
+@---------------------------------------------------------------------------------
+ bx r3
+
+@---------------------------------------------------------------------------------
@ Clear memory to 0x00 if length != 0
@ r0 = Start Address
@ r1 = Length