Re-make: kernel heap (malloc, free) via free list alloc + add UEFI emulation doc

This commit is contained in:
xamidev
2024-09-04 21:49:26 +02:00
parent 3b39a0a1f4
commit 4d05e0d620
4 changed files with 79 additions and 35 deletions

View File

@@ -3,6 +3,8 @@
## Table of Contents
- Getting Started
- Debugging the kernel
- Emulated booting in UEFI mode
- Writing programs for BlankOS
- Changing the TTY font
@@ -33,6 +35,14 @@ gdb kernel.elf
(gdb) target remote localhost:1234
```
## Emulated booting in UEFI mode (QEMU w/ OVMF)
Install the OVMF firmware package by doing `sudo pacman -S ovmf` or the equivalent for your distro. Then, you can emulate the OS as if it was ran using an UEFI machine:
```
sudo qemu-system-i386 -drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/ia32/OVMF_CODE.fd -drive if=pflash,format=raw,file=/usr/share/OVMF/ia32/OVMF_VARS.fd -drive file=blankos.iso,format=raw -m 4098
```
## Writing programs for BlankOS
Be warned, these are not actual programs in the sense you'd expect. These are indeed functions that are called from the shell, and embedded in the kernel ELF binary. Real programs apart from the kernel are not yet a thing here, but might be one day.