Add: init serial + getting text out of it

This commit is contained in:
2025-12-21 20:33:48 +01:00
parent e6f4200ae9
commit 62302e03d5
6 changed files with 83 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
build:
rm -f *.o
x86_64-elf-gcc -g -c -I src src/io/term.c src/io/printf.c src/kmain.c -Wall -Wextra -std=gnu99 -nostdlib -ffreestanding -fno-stack-protector -fno-stack-check -fno-PIC -ffunction-sections -fdata-sections -mcmodel=kernel
x86_64-elf-gcc -g -c -I src src/io/serial.c src/io/term.c src/io/printf.c src/kmain.c -Wall -Wextra -std=gnu99 -nostdlib -ffreestanding -fno-stack-protector -fno-stack-check -fno-PIC -ffunction-sections -fdata-sections -mcmodel=kernel
objcopy -O elf64-x86-64 -B i386 -I binary zap-light16.psf zap-light16.o
x86_64-elf-ld -o pepperk -T linker.ld *.o
@@ -31,7 +31,7 @@ debug:
gdb pepperk --command=debug.gdb
run: build-iso
qemu-system-x86_64 -cdrom pepper.iso
qemu-system-x86_64 -cdrom pepper.iso -serial stdio
clean:
rm -rf *.o pepperk iso_root pepper.iso limine