2015-08-09 00:42:56 +00:00
|
|
|
.section .text
|
|
|
|
|
|
|
|
// C-Einstiegspunkt
|
|
|
|
.extern init
|
|
|
|
|
|
|
|
// .global für Sichtbarkeit im Linker (invers zu static aus C)
|
2015-08-13 15:23:11 +00:00
|
|
|
.global _trainOS_start
|
|
|
|
_trainOS_start:
|
2015-08-09 00:42:56 +00:00
|
|
|
// Init stack
|
|
|
|
mov $kernel_stack, %esp
|
|
|
|
|
|
|
|
// Start Kernel
|
|
|
|
push %ebx
|
|
|
|
call init
|
|
|
|
|
|
|
|
// Halte an, no matter what
|
|
|
|
_stop:
|
|
|
|
cli
|
|
|
|
hlt
|
|
|
|
jmp _stop
|
|
|
|
|
|
|
|
// 16 KB Stackspace
|
|
|
|
.section .bss
|
|
|
|
.space 16384
|
|
|
|
kernel_stack:
|