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

12
kernel.c/Makefile Normal file
View File

@@ -0,0 +1,12 @@
.PHONY: all
all: kernel-1989
qemu-system-i386 -kernel kernel-1989 -d guest_errors
kernel-1989: boot.s kmain.c
gcc -m32 -c boot.s -o boot.o
gcc -m32 -std=c99 -c kmain.c -o kmain.o
ld -m elf_i386 -T link.ld -o kernel-1989 boot.o kmain.o
.PHONY: clean
clean:
rm -f *.o kernel-1989