Commit Graph

98 Commits

Author SHA1 Message Date
Chloe M. 686de4059f stos/amd64+hal: Add hpet init groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 22:07:14 -05:00
Chloe M. 45dea1edb9 stos/amd64: hpetreg: Add HPET register defs
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 22:06:44 -05:00
Chloe M. 95e2c96126 stos/amd64: Add Local APIC register defs
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-26 00:13:40 +00:00
Chloe M. 99261380ca stos: ob: Add directory object operations
This commit adds operations for appending directories and top-level
lookups.

Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 23:26:54 +00:00
Chloe M. 53d0e27b4f stos: ob: Pull object from cache on creation
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 14:39:47 -05:00
Chloe M. ceddcdba03 stos: ob: Reclaim directory object on failure
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 14:25:31 -05:00
Chloe M. 898990c91a stos: ob: Atomically decrement reference count
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 19:10:27 +00:00
Chloe M. bc11f9b58f stos: ob: Add object cache groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 17:50:43 +00:00
Chloe M. 70f58b193f stos: ob: Initialize object manager
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 00:51:24 +00:00
Chloe M. 4f399576a0 stos: ob: Add helper to create object directory
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 00:49:13 +00:00
Chloe M. 70c3a30f72 stos: ob: Zero object on init for security
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 00:48:44 +00:00
Chloe M. 283547058e stos: ob: Implement ObCreateObject() helper
The ObCreateObject() is responsible for creating and allocating new
objects, we'll need this to even have directories and such.

Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 00:09:54 +00:00
Chloe M. 6b23c1e3d1 stos: ob: Add object directory definition
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 22:06:19 +00:00
Chloe M. ed2d4744d7 stos: pool: Protect pool structures with lock
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 17:43:45 +00:00
Chloe M. 995da1df2d stos: ob: Add object definition
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 17:36:59 +00:00
Chloe M. d3adef547d stos: pool: Use Pool->Id instead of PoolCount
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 17:00:56 +00:00
Chloe M. 05c4c0b059 stos: pool: Handle page chaining while under pressure
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 07:31:39 +00:00
Chloe M. ef8535f089 stos: pool: Add actual allocation groundwork
Still lots to do

Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 05:50:22 +00:00
Chloe M. 9b1f4dde43 stos/amd64: cpu: Save KPCR in IA32_GS_BASE
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 05:49:59 +00:00
Chloe M. 5beb6f1d62 stos/amd64: Add MSR register helpers
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 05:49:32 +00:00
Chloe M. 130f8e94f4 stos: knot: Update panic message to retire legacy name
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 05:08:12 +00:00
Chloe M. 23746a2918 stos: ex: Add per-cpu pool allocator groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 05:05:39 +00:00
Chloe M. bb4dd19bcf boot: Make splash more sleek
Thanks to rintoo for the new edit, shit is sleek as hell !!

Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-24 02:28:18 +00:00
Chloe M. 95f4c3abee stos: acpi: Add ACPI impl groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 23:50:58 +00:00
Chloe M. cb12de88a2 stos: acpi: Add ACPI tables
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 23:50:42 +00:00
Chloe M. 520d148e0f stos: bpal: Put RSDP base in BPAL handle
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 23:50:19 +00:00
Chloe M. b8a80c1bd0 stos: knot: Fix up knot reasons for consistency
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 23:49:50 +00:00
Chloe M. 0a66d08f15 stos: knot: Add KNOT_BAD_CHECKSUM reason
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 23:48:26 +00:00
Chloe M. 7b9f8267ea stos: init: Fix typo in comment
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 23:36:45 +00:00
Chloe M. 7ce1cf27d1 stos: mm: Add locking to VAD lists
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 22:27:05 +00:00
Chloe M. b5c2ba80f7 stos: ke: Add initial support for spinlocks
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 22:20:11 +00:00
Chloe M. 0fbce493e3 stos: hal: Add IRQL for critical sections
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 22:19:40 +00:00
Chloe M. a317368901 stos/amd64: prim: Prefer UQUAD over QUAD for ASWAP
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 22:19:21 +00:00
Chloe M. 531a027122 stos/amd64: cpu: Default to IRQL_PASSIVE on startup
We cannot be certain that the CR8 register will be zeroed by the time we
have control passed to us, therefore it is wise to set it ourselves.

Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 22:05:02 +00:00
Chloe M. 114cc434d2 stos/amd64: intr: Add IRQL management
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 22:01:52 +00:00
Chloe M. 22beed638d stos: Bump kernel version to v0.0.2
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 21:34:38 +00:00
Chloe M. 27c6ca8125 stos/amd64: cpu: Add HAL interrupt registration
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 21:20:09 +00:00
Chloe M. e1a115cccc stos: hal: Add interrupt IRQL defs
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 20:14:03 +00:00
Chloe M. 69ddd09500 stos/amd64: Add processor primitives
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 20:13:49 +00:00
Chloe M. b6d4a1c963 stos/amd64: cpu: Add exception handling groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 19:11:14 +00:00
Chloe M. 27af606ba2 stos/amd64: Add GDT header
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 19:00:14 +00:00
Chloe M. 3671c32532 stos/amd64: Add kernel fence helper
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 18:59:57 +00:00
Chloe M. ec83f6c6a2 stos/amd64: Add IDT gate types
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 16:53:05 +00:00
Chloe M. d337a3d55b stos: mm: Add virtual page allocation
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 09:52:44 +00:00
Chloe M. 333331171d stos/amd64: cpu: Obtain more processor info
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 07:03:35 +00:00
Chloe M. 81ebb948ed stos: vmm: Resolve panic TODO
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 06:46:54 +00:00
Chloe M. bc4b69b6bf stos: knot: Add KNOT_OOM reason
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 06:46:41 +00:00
Chloe M. 5c522ffc7f stos: Handle pre BPAL kernel knots
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 05:47:24 +00:00
Chloe M. 81d5f13a30 stos: Add kernel knotting impl
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 05:36:10 +00:00
Chloe M. d2596979a2 stos: bootvid: Remove debug include
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 05:34:45 +00:00