aboutsummaryrefslogtreecommitdiff
path: root/sys/rt/amd64/rt1.s
diff options
context:
space:
mode:
Diffstat (limited to 'sys/rt/amd64/rt1.s')
-rw-r--r--sys/rt/amd64/rt1.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/rt/amd64/rt1.s b/sys/rt/amd64/rt1.s
new file mode 100644
index 0000000..afb5c32
--- /dev/null
+++ b/sys/rt/amd64/rt1.s
@@ -0,0 +1,9 @@
+.extern rt·thunk
+
+.text
+.global _start
+_start:
+ xor %rbp,%rbp
+ mov %rsp,%rdi
+ andq $-16,%rsp
+ call rt·thunk