aboutsummaryrefslogtreecommitdiff
path: root/sys/rt/i386/rt1.s
diff options
context:
space:
mode:
Diffstat (limited to 'sys/rt/i386/rt1.s')
-rw-r--r--sys/rt/i386/rt1.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/rt/i386/rt1.s b/sys/rt/i386/rt1.s
new file mode 100644
index 0000000..aef4f05
--- /dev/null
+++ b/sys/rt/i386/rt1.s
@@ -0,0 +1,14 @@
+.extern rt·thunk
+
+.text
+.global _start
+_start:
+ xor %ebp,%ebp
+ mov %esp,%eax
+ and $-16,%esp
+ push %eax
+ push %eax
+ push %eax
+ push %eax
+ call rt·thunk
+");