im tired imma ship this now :3
This commit is contained in:
parent
d23b4d9c6c
commit
82cee710e8
4 changed files with 23 additions and 5 deletions
6
Makefile
6
Makefile
|
@ -6,7 +6,9 @@ kernel:
|
|||
nasm -f elf kernel_entry.asm -o kernel_entry.o
|
||||
gcc -m16 -ffreestanding -c kernel.c -o kernel.o
|
||||
ld -m elf_i386 -T linker.ld --oformat binary kernel_entry.o kernel.o -o kernel.bin
|
||||
baddos: bootloader kernel
|
||||
cat badloader.img kernel.bin > baddos.img
|
||||
baddos: bootloader
|
||||
cat badloader.img > baddos.img
|
||||
run: bootloader baddos
|
||||
qemu-system-x86_64 -drive format=raw,file=baddos.img
|
||||
clean:
|
||||
rm -f *.o *.img *.bin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue