Runtime stuff

This commit is contained in:
Alex
2022-11-11 04:41:12 +02:00
parent 77b24c45ec
commit 08ab104eb1
20 changed files with 131 additions and 4 deletions

View File

@ -0,0 +1,15 @@
// #include <types.h>
// #include <debug.h>
// int Entry(void *Info);
// void _start(void *Raw)
// {
// error("Todo");
// while (1)
// asmv("hlt");
// Entry(NULL);
// return;
// }
// C stuff

View File

@ -63,7 +63,6 @@ Loop:
hlt
jmp Loop
section .bss
align 16
KernelStack :

View File

@ -0,0 +1 @@
// C++ constructor/destructor stuff

View File

@ -0,0 +1 @@
// C++ constructor/destructor stuff

View File

@ -0,0 +1,13 @@
.section .init
.global _init
.type _init, @function
_init:
push %ebp
movq %esp, %ebp
.section .fini
.global _fini
.type _fini, @function
_fini:
push %ebp
movq %esp, %ebp

View File

@ -0,0 +1,7 @@
.section .init
popq %ebp
ret
.section .fini
popq %ebp
ret