aboutsummaryrefslogtreecommitdiff
path: root/source/boot/arch/x86_64/src/crtn.s
diff options
context:
space:
mode:
authorfelix.morgner@ost.ch <felix.morgner@gmail.com>2023-10-07 10:45:45 +0200
committerfelix.morgner@ost.ch <felix.morgner@gmail.com>2023-10-07 10:45:45 +0200
commit68db123a2f37a66aea218fa48a5bab8ea6b12951 (patch)
tree911c21ba6ab3694ab6339186001a14c04fe889ea /source/boot/arch/x86_64/src/crtn.s
parentfa1f8636d2e2368c9cb446284946570565563f4f (diff)
downloadteachos-68db123a2f37a66aea218fa48a5bab8ea6b12951.tar.xz
teachos-68db123a2f37a66aea218fa48a5bab8ea6b12951.zip
x86_64: implement first bootable kernel
Diffstat (limited to 'source/boot/arch/x86_64/src/crtn.s')
-rw-r--r--source/boot/arch/x86_64/src/crtn.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/boot/arch/x86_64/src/crtn.s b/source/boot/arch/x86_64/src/crtn.s
new file mode 100644
index 0000000..06fb7ce
--- /dev/null
+++ b/source/boot/arch/x86_64/src/crtn.s
@@ -0,0 +1,9 @@
+.code64
+
+.section .init
+ popq %rbp
+ ret
+
+.section .fini
+ popq %rbp
+ ret