aboutsummaryrefslogtreecommitdiff
path: root/sys/rt/amd64/crtn.s
diff options
context:
space:
mode:
Diffstat (limited to 'sys/rt/amd64/crtn.s')
-rw-r--r--sys/rt/amd64/crtn.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/rt/amd64/crtn.s b/sys/rt/amd64/crtn.s
new file mode 100644
index 0000000..45d1a29
--- /dev/null
+++ b/sys/rt/amd64/crtn.s
@@ -0,0 +1,9 @@
+section .init
+ ;; compiler inserts here
+ pop rbp ;; undo our push
+ ret
+
+section .fini
+ ;; compiler inserts here
+ pop rbp ;; undo our push
+ ret