mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
a8b02d4693
* libc/sys/sysnec810/Makefile.am: Specify .S files instead of .s. * libc/sys/sysnec810/Makefile.in: Regenerated. * libc/sys/sysnec810/crt0.S: Renamed from .s file. * libc/sys/sysnec810/io.S: Ditto. * libc/sys/sysnec810/crt0.s: Renamed to .S file. * libc/sys/sysnec810/io.s: Ditto.
23 lines
667 B
ArmAsm
23 lines
667 B
ArmAsm
.set STACKTOP, 0x100000
|
|
|
|
.extern __tp_TEXT, 4
|
|
.extern __gp_DATA, 4
|
|
.extern _main
|
|
.globl __start
|
|
.globl _exit
|
|
.globl __exit
|
|
|
|
.text
|
|
__start:
|
|
mov 2, r10 -- set Cache Control Word
|
|
ldsr r10, 24 --
|
|
#
|
|
mov STACKTOP, sp -- set stack pointer
|
|
mov #__tp_TEXT, tp -- set tp register
|
|
mov #__gp_DATA, gp -- set gp register offset
|
|
add tp, gp -- set gp register
|
|
jal _main -- call main function
|
|
__exit:
|
|
halt -- end of the program
|
|
|