Kernel: Finally managed to get 64-bit working

I had weird problems with interrupts but everything should work now
This commit is contained in:
Bananymous
2023-01-25 19:05:47 +02:00
parent c4670f49d4
commit b315fdc27f
10 changed files with 798 additions and 0 deletions

16
kernel/arch/x86_64/crti.S Normal file
View File

@@ -0,0 +1,16 @@
/* x86-64 crti.s */
.section .init
.global _init
.type _init, @function
_init:
pushq %rbp
movq %rsp, %rbp
/* gcc will nicely put the contents of crtbegin.o's .init section here. */
.section .fini
.global _fini
.type _fini, @function
_fini:
pushq %rbp
movq %rsp, %rbp
/* gcc will nicely put the contents of crtbegin.o's .fini section here. */