feat(kernel): implement Phase 4 - preemptive multitasking, round-robin scheduler, PCB, x86_64 context switch & syscalls

This commit is contained in:
Adam Eehan committed 2026-10-23 17:36:52 +05:30
1 parent 7a584ea6e6
commit 6ee659ac6b
9 files changed
+444 -6

No files matched your search

+5 -4
View File
@@ -128,10 +128,11 @@ qemu-system-x86_64 -kernel bin/airlys.elf
- [x] Virtual Memory Manager (Page fault `#PF` exception handler with CR2/CR3 register inspection)
- [x] Sovereign Dynamic Kernel Heap (`kmalloc`, `kfree`, `kcalloc`, `krealloc` with 32MB dynamic pool & automated memory self-test)
- [ ] **Phase 4: Preemptive Multitasking**
- [ ] Process Control Block (PCB) architecture
- [ ] Timer-driven Round-Robin process scheduler
- [ ] Ring 3 User-Mode execution transition
- [x] **Phase 4: Preemptive Multitasking**
- [x] Process Control Block (PCB) architecture & 16KB kernel stack allocation
- [x] Timer-driven Round-Robin preemptive process scheduler (10ms time-slice)
- [x] Callee-saved context switch (`task_switch` in pure x86_64 assembly)
- [x] Sovereign System Call Gateway dispatcher (Ring 0 / Ring 3)
- [ ] **Phase 5: Virtual File System & Userland**
- [ ] VFS abstraction layer