diff options
| author | felix.morgner@ost.ch <felix.morgner@gmail.com> | 2023-10-07 10:45:45 +0200 |
|---|---|---|
| committer | felix.morgner@ost.ch <felix.morgner@gmail.com> | 2023-10-07 10:45:45 +0200 |
| commit | 68db123a2f37a66aea218fa48a5bab8ea6b12951 (patch) | |
| tree | 911c21ba6ab3694ab6339186001a14c04fe889ea /source/boot/arch/x86_64/src/crti.s | |
| parent | fa1f8636d2e2368c9cb446284946570565563f4f (diff) | |
| download | teachos-68db123a2f37a66aea218fa48a5bab8ea6b12951.tar.xz teachos-68db123a2f37a66aea218fa48a5bab8ea6b12951.zip | |
x86_64: implement first bootable kernel
Diffstat (limited to 'source/boot/arch/x86_64/src/crti.s')
| -rw-r--r-- | source/boot/arch/x86_64/src/crti.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/boot/arch/x86_64/src/crti.s b/source/boot/arch/x86_64/src/crti.s new file mode 100644 index 0000000..26878fe --- /dev/null +++ b/source/boot/arch/x86_64/src/crti.s @@ -0,0 +1,13 @@ +.code64 + +.section .init +.global _init +_init: + push %rbp + movq %rsp, %rbp + +.section .fini +.global _fini +_fini: + push %rbp + movq %rsp, %rbp |
