Migrated first 6 gists.
This commit is contained in:
21
kernel.c/kernel.s
Normal file
21
kernel.c/kernel.s
Normal file
@@ -0,0 +1,21 @@
|
||||
.section .text
|
||||
|
||||
// Multiboot header
|
||||
.align 4
|
||||
.long 0x1BADB002
|
||||
.long 0x00
|
||||
.long -0x1BADB002
|
||||
|
||||
// Entry point
|
||||
.globl start
|
||||
|
||||
start:
|
||||
cli
|
||||
mov $stack_top, %esp
|
||||
call kmain
|
||||
hlt
|
||||
|
||||
.section .bss
|
||||
|
||||
.comm stack_bottom, 8192, 4
|
||||
stack_top:
|
||||
Reference in New Issue
Block a user