Migrated first 6 gists.

This commit is contained in:
Miguel Astor
2023-01-13 18:18:55 -04:00
parent 92fcabcfba
commit 8af706e97d
16 changed files with 290 additions and 0 deletions

21
kernel.c/kernel.s Normal file
View 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: