Commit Graph

113 Commits

Author SHA1 Message Date
chloe 85927ce8c1 ptos/amd64: ps: Add support for CPL 3 processes
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-15 01:10:39 -04:00
chloe bda2c510cd ptos/amd64: context: Remove unused include
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-15 01:10:24 -04:00
chloe e3ef75efd9 ptos: elf64: Set program image entrypoint
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-15 01:09:46 -04:00
chloe cbb440b8e9 ptos: ex: Add loader dispatch + ELF64 loader
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 22:16:17 -04:00
chloe cb12ab9518 ptos: init: Initialize the pre-boot image subsystem
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 22:13:02 -04:00
chloe fd056425ae ptos/amd64: cpu: Implement context switch groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 22:14:57 +00:00
chloe 134a214bde ptos: kpcr: Store current thread per processor
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 22:13:39 +00:00
chloe a33ae9b426 ptos/amd64: cpu: Use smaller interrupt stack for NMIs
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 22:11:47 +00:00
chloe 66f0d0f469 ptos/amd64: frame: Always iretq in INTR_EXIT()
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 22:11:18 +00:00
chloe 1eed5f511d ptos/amd64: frame: Push trapframe *after* swapgs
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 22:10:54 +00:00
chloe 069c51d2e2 ptos: pool: Align ByteCount before ChunksNeeded div
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 22:02:55 +00:00
chloe b7edf8341a ptos: pool: Fix PoolComputeLevelIndex() to match formula
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 22:02:23 +00:00
chloe 1601bfe87b ptos: ps: Add new VAS per-process
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 21:27:44 +00:00
chloe 181b0fdf61 ptos/amd64+hal: Add virtual address space forking
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 21:25:51 +00:00
chloe 7fa508bdf3 ptos/amd64: cpu: Add interrupt stack for NMIs
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 21:04:21 +00:00
chloe 5a59c308db ptos: ex: Add pre-boot image parser
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 16:45:28 -04:00
chloe 94e2dbfed0 ptos: bpal: Add bootloader module lookup support
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 16:42:21 -04:00
chloe a029f0de5d ptos/amd64: ps: Add context switching stub
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 16:40:06 -04:00
chloe 093061f2ad ptos/amd64: cpu: Enable interrupts after P2 init
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 16:39:45 -04:00
chloe 0408b34438 ptos/amd64: cpu: Add Local APIC timer ISR stub
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 16:39:22 -04:00
chloe fcfe1dfb4a ptos: ps+hal: Add thread control block init
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 16:14:03 -04:00
chloe fe6be93d32 ptos: ps: Keep track of parent process
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 15:54:23 -04:00
chloe e6ac3d0b30 ptos: sched: Add thread enqueue/dequeue helpers
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 03:07:37 -04:00
chloe bc08e8232e service: Update boot config + add wallpaper
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-14 06:05:11 +00:00
chloe 7a2aec4e12 ptos: ke: Add per-processor scheduler queue + PBI packer
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 05:57:11 +00:00
chloe cf0e104b12 ptos: ps: Add thread management groundwork
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-14 00:47:29 -04:00
chloe bb55a52b69 ptos/amd64: Add task state segment
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 23:27:01 -04:00
chloe 4165241b6f stos/amd64: cpu: Add LAPIC driver + MCB in KPCR
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:26:21 -04:00
chloe 533483a367 ptos: bugcheck: Add BUGCHECK_MISSING_HARDWARE reason
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:25:05 -04:00
chloe 7099337c3a ptos: hal: Resolve inclusion of stale header
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:24:33 -04:00
chloe 449c13fcd3 ptos: drivers: Add ACPI driver groundwork
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:16:28 -04:00
chloe 680a17d175 ptos: bugcheck: Add BUGCHECK_BAD_CHECKSUM reason
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:16:08 -04:00
chloe 3387461f61 ptos: bpal: Obtain ACPI RSDP pointer
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:15:50 -04:00
chloe 823586180c ptos: pool: Use BUGCHECK_BAD_FREE on malformed headers
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:03:53 -04:00
chloe 3d06ed9edb ptos: bugcheck: Add BUGCHECK_BAD_FREE reason
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:03:23 -04:00
chloe df57eb710a ptos: ke: Create root process
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:02:02 -04:00
chloe 9d7ff0461f ptos: ps: Add process init logic
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 22:01:39 -04:00
chloe 0b3a0cc071 ptos: hal: Add MMIO helper macros
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 21:33:50 -04:00
chloe 93acc859af ptos: pool: Add freeing of allocated memory
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 20:19:09 -04:00
chloe aae870e874 ptos: pool: Propagate page information and prepend header
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 20:12:48 -04:00
chloe 6472e67fe2 ptos: pool: Add pool allocator groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-13 23:40:24 +00:00
chloe 895521c510 ptos: Initialize per-processor pool regions
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 18:35:39 -04:00
chloe 7a8fbe7025 ptos/amd64: cpu: Add HalKpcrCurrent()
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 18:13:25 -04:00
chloe 6969e90db6 ptos/amd64: msr: Update include
Signed-off-by: Chloe M <chloe@mensia.org>
2026-07-13 18:09:15 -04:00
chloe 9d7e9002ec ptos: ex: Add pool allocator header groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-13 21:53:14 +00:00
chloe 2a06fd18ce ptos: mm: Protect PFDs with lock
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-13 04:17:25 +00:00
chloe a40f3dc2ea ptos: ke: Add spinlock impl
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-13 04:05:00 +00:00
chloe 7fb0e4e88c ptos: hal: Return proper type in HalCpuAswap()
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-13 04:04:32 +00:00
chloe 5b12cc0bd7 ptos/amd64: prim: Fix typo
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-13 04:04:10 +00:00
chloe 2081b15219 ptos/amd64+hal: intr: Add IRQL managmenet
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-07-13 03:54:22 +00:00