gila/docs/STATE_OF_DEVELOPMENT.md
August f432e1641a
Some checks failed
Continuous Integration / Check (push) Failing after 49s
Continuous Integration / Clippy (push) Failing after 48s
Add dev journal
2026-10-08 18:56:28 +00:00

21 lines
1.1 KiB
Markdown

# State Of Development
This file will serve as a living journal of what I'm working on with regards
to the project, so I can step away from it and come back to it without having
to figure out what I was doing from commit messages alone.
## 2026-10-08: TSS Descriptor Weirdness
Loading the TSS selector into the Task Register was causing endless general
protection faults, which seemed... odd. Turns out, I was performing some bad
encoding when generating the TSS descriptor in the GDT, as well as loading
the bytes in the wrong order. Fixing the descriptor generation code and
swapping the bytes was enough to fix the GPFs. Now, the kernel makes it to
usermode, before triple faulting due to page faults. This is probably because
I put the stack in a bogus, unmapped address.
The next issue to work on will be paging and memory allocation. I need to
allocate memory to load and start the initial process, and to do that, I
need to finalize how I want process page mappings to be stored. It has to
align with Gila's capability model. After that, I can write some basic
syscalls, and compile a very minimal binary to test running processes.