mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 15:29:18 +00:00
Runtime stuff
This commit is contained in:
15
Architecture/i686/runtime/crt0.c
Normal file
15
Architecture/i686/runtime/crt0.c
Normal 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
|
@ -63,7 +63,6 @@ Loop:
|
||||
hlt
|
||||
jmp Loop
|
||||
|
||||
|
||||
section .bss
|
||||
align 16
|
||||
KernelStack :
|
1
Architecture/i686/runtime/crtbegin.c
Normal file
1
Architecture/i686/runtime/crtbegin.c
Normal file
@ -0,0 +1 @@
|
||||
// C++ constructor/destructor stuff
|
1
Architecture/i686/runtime/crtend.c
Normal file
1
Architecture/i686/runtime/crtend.c
Normal file
@ -0,0 +1 @@
|
||||
// C++ constructor/destructor stuff
|
13
Architecture/i686/runtime/crti.S
Normal file
13
Architecture/i686/runtime/crti.S
Normal 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
|
7
Architecture/i686/runtime/crtn.S
Normal file
7
Architecture/i686/runtime/crtn.S
Normal file
@ -0,0 +1,7 @@
|
||||
.section .init
|
||||
popq %ebp
|
||||
ret
|
||||
|
||||
.section .fini
|
||||
popq %ebp
|
||||
ret
|
Reference in New Issue
Block a user