summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/ia64/crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/arch/ia64/crt0.S')
-rw-r--r--usr/klibc/arch/ia64/crt0.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr/klibc/arch/ia64/crt0.S b/usr/klibc/arch/ia64/crt0.S
new file mode 100644
index 0000000..2394cc4
--- /dev/null
+++ b/usr/klibc/arch/ia64/crt0.S
@@ -0,0 +1,23 @@
+
+#include <asm/fpu.h>
+
+ .align 32
+ .global _start
+
+ .proc _start
+ .type _start,@function
+_start:
+ .prologue
+ .save rp, r0
+
+ alloc r2 = ar.pfs,0,0,2,0
+ movl r3 = FPSR_DEFAULT
+ ;;
+ adds out0= 16,sp /* argc pointer */
+
+ .body
+ br.call.sptk.few rp = __libc_init
+ ;;
+ break 0 /* break miserably if we ever return */
+
+ .endp _start