Commit Graph

7 Commits

Author SHA1 Message Date
karina 6dd68f8162 fix: plug memory map leak, save sp_el0, dynamic UART, kill loop
- Bootloader: reallocate memory map buffer when ExitBootServices fails,
  so GetMemoryMap doesn't scribble past the old allocation on retry.
- vectors.S: actually store sp_el0 into the exception frame. Previously
  it was read into x24 and then… vanished. EL0 tasks would wake up with
  a corrupted stack pointer. Not great.
- Serial: split hardcoded 0x09000000 into a fallback default; add
  SerialUpdate() so the DTB-parsed UART address actually gets used.
- DTB: add bounds check on reserved[] with PMM's 3 extra slots accounted
  for, so malformed/overstuffed DTBs don't silently corrupt memory.
- PMM.h: bump kVMMaxReservedRegions 128→256, define kPMMReservedRegionCount.
- Types.h: remove `#define loop while(1)`. while(true) is fine.
- Rename IOSerial* → Serial* — the IO prefix was redundant, Serial.c
  already lives under IO/.
2026-05-03 00:32:30 +04:00
karina b519e69fbd feat(panic): funMessages in panic
feat(rand): also implemented rand
2026-04-30 13:10:07 +04:00
karina e06abbcb23 feat(scheduler): working scheduler 2026-04-29 17:00:11 +04:00
karina b56b55e4b3 feat(arm64): higher-half kernel, early MMU in boot, and VMM 2026-04-26 21:47:41 +04:00
karina b606fa23d0 feat: OSPanic(message) 2026-04-25 06:55:41 +04:00
karina 560bdc8b1d feat: error parse in panic 2026-04-24 18:14:04 +04:00
karina 373ee00d04 feat: add kernel exception panic 2026-04-23 23:14:24 +04:00