| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 24 hours | kapi/memory: replace mmio_region API with mmio_window | Felix Morgner | 3 | -45/+199 | |
| Previously, allocation and mapping of MMIO regions was a multi-step process. The MMIO region API required its users to track and manage the lifetime of an MMIO region allocation manually. The new MMIO window API simplifies this by providing a single-step mapping interface and automatic lifetime management. Additionally, the new API adds strict bounds and alignment checks, to ensure that all MMIO accesses are within the requested range. The new API enforces these constraints at runtime via a system panic. Other contract violations, such as zero-sized mappings, are handled via runtime error codes. The new kapi::memory::mmio_window preserves the in-page offset of the hardware base within the window and bases all accesses on this offset. This means no user intervention is required to handle hardware ranges that are not aligned to a natural page boundary. The original pointer adjustment logic has been moved into the mmio_window class. Previous consumers of the region API (x86_64 LAPIC, PCIe) have been updated to the new mmio_window API. The behavior of the PCIe scan implementation has changed in that no windows are kept alive beyond the execution of the scan, since there are no consumers that would require persistent MMIO windows. Tests for the new infrastructure have been added, including a test support seam to allow for deinitialization of the MMIO subsystem in tests. | |||||
| 24 hours | kapi/memory: carry hw_base offset forward in mapping | Felix Morgner | 1 | -3/+4 | |
| 24 hours | memory: harden MMIO mappings and update docs. | Felix Morgner | 2 | -7/+17 | |
| 24 hours | memory: improve MMIO allocation/mapping robustness | Felix Morgner | 1 | -3/+11 | |
| 24 hours | kapi/memory: fix page unmap logic | Felix Morgner | 2 | -4/+7 | |
| Previously, the page mapper was expected to automatically free all frames that had become unused. However, this only works if all mappings refer to plain memory frames. In the case of MMIO frames, the mapper would still try to release the frame via the global frame allocator, which is incorrect, leading to undefined behavior in the worst case. This problem was discovered during work the PCI/PCIe subsystem, since we want to unmap any unused buses during enumeration. | |||||
| 24 hours | dev/pcie: extend segment descriptor | Felix Morgner | 1 | -3/+12 | |
| 24 hours | dev/pcie: implement initial detection | Felix Morgner | 2 | -0/+33 | |
| 2026-09-30 | chore: clean up python scripts | Felix Morgner | 8 | -10/+10 | |
| 2026-09-29 | kapi/interrupts: admit irq_lock dtor may panic | Felix Morgner | 1 | -1/+8 | |
| 2026-09-29 | kapi/interrupts: improve irq_lock protections | Felix Morgner | 1 | -5/+53 | |
| The previous implementation suffered from four problems: 1. try_lock in the basic irq_lock always succeeded. 2. lock in the basic irq_lock always succeeded. 3. try_lock in the wrapper irq_lock did not use the base try_lock. 4. a foreign CPU could wrongly unlock a remote irq_lock. These issues are mitigated in this patch. | |||||
| 2026-09-29 | kapi/interrupts: implement IRQ lock | Felix Morgner | 2 | -0/+110 | |
| 2026-09-29 | kapi/interrupt: rework enablement API | Felix Morgner | 2 | -17/+28 | |
| 2026-09-10 | kapi/system: reduce panic buffer size | Felix Morgner | 1 | -24/+78 | |
| Previously, we allocated a 512-byte buffer for every call of the formatted panic function. This was heavily increasing the stack size for a number of functions. We now don't print to a statically allocated buffer, but rather use the iterator-based formatting facility and a proxy iterator with a small, self-flushing buffer. This reduces that static overhead of the formatted panic function to by almost 500 bytes, while increasing possible message fidelity, since we are not longer arbitrarily limited by the buffer. | |||||
| 2026-09-10 | kernel: replace some more plain pointers | Felix Morgner | 4 | -4/+4 | |
| 2026-09-10 | kstd/memory: introduce observer_ptr casts | Felix Morgner | 4 | -10/+16 | |
| 2026-09-10 | x86_64: replace raw pointers with observer_ptr | Felix Morgner | 3 | -7/+30 | |
| 2026-09-09 | chore: replace some naked pointers | Felix Morgner | 6 | -32/+36 | |
| The coding guidelines explicitly prohibit the use of "naked"/C-style pointers. However, there were some prominent examples in the kapi and the core kernel source. This changeset replaces them with the appropriate smart pointer types. | |||||
| 2026-09-05 | x86_64/cpu: improve stack overflow detection | Felix Morgner | 1 | -2/+2 | |
| 2026-09-03 | chore: fix header guards | Felix Morgner | 2 | -2/+2 | |
| 2026-09-03 | chore: add missing explicit specifiers | Felix Morgner | 1 | -1/+1 | |
| 2026-09-03 | chore: add missing [[nodiscard]] attributes | Felix Morgner | 2 | -5/+6 | |
| 2026-09-01 | chore: clean up facet ids | Felix Morgner | 6 | -7/+8 | |
| 2026-08-31 | chore: minor stylistic cleanups | Felix Morgner | 7 | -22/+26 | |
| 2026-08-30 | kapi/gdb: extend pretty printers | Felix Morgner | 5 | -0/+98 | |
| 2026-08-29 | chore: apply stylistic cleanups | Felix Morgner | 8 | -11/+11 | |
| 2026-08-27 | kapi/fs: implement read_directory | Felix Morgner | 2 | -6/+4 | |
| This change also replaces the kernel internal directory_listing_cursor and directory_listing_entry with the kapi types directory_cursor and directory_entry. | |||||
| 2026-08-26 | kapi/fs: introduce read_directory API | Felix Morgner | 3 | -0/+58 | |
| 2026-08-26 | build: fix include paths | Felix Morgner | 1 | -1/+1 | |
| 2026-08-20 | kernel: remove vfs_type | Felix Morgner | 1 | -0/+5 | |
| 2026-08-20 | docs: draft new documentation structure | Felix Morgner | 5 | -32/+6 | |
| 2026-08-20 | build: clean up header set verification | Felix Morgner | 1 | -4/+0 | |
| 2026-08-20 | build: fix kapi header glob | Felix Morgner | 1 | -2/+2 | |
| 2026-08-19 | chore: normalize kapi doc comments | Felix Morgner | 19 | -8/+104 | |
| 2026-08-19 | chore: normalize header guards | Felix Morgner | 1 | -2/+2 | |
| 2026-08-19 | docs: improve API doc structure | Felix Morgner | 1 | -0/+4 | |
| 2026-08-19 | kapi: use bytes for size in boot modules | Felix Morgner | 1 | -7/+7 | |
| 2026-08-18 | kstd: introduce basic offset type | Felix Morgner | 2 | -11/+1 | |
| 2026-08-18 | kstd: flatten units namespace | Felix Morgner | 8 | -17/+17 | |
| 2026-08-18 | kstd: clean up units | Felix Morgner | 1 | -2/+2 | |
| 2026-08-18 | kapi: implement seek support | Felix Morgner | 2 | -6/+16 | |
| 2026-08-17 | kapi/fs: introduce seek API | Felix Morgner | 2 | -0/+31 | |
| 2026-08-17 | chore: replace expected by result | Felix Morgner | 1 | -8/+6 | |
| 2026-08-17 | kapi: de-const read on block and char devices | Felix Morgner | 2 | -2/+2 | |
| 2026-08-17 | kapi: port block_special_file to std::span | Felix Morgner | 1 | -4/+11 | |
| 2026-08-17 | kapi: add power management support to drivers | Felix Morgner | 3 | -0/+54 | |
| 2026-08-01 | kapi: add automatic driver registration | Felix Morgner | 1 | -0/+36 | |
| 2026-07-30 | kernel: implement dev zero and null | Felix Morgner | 1 | -0/+4 | |
| 2026-07-30 | kernel: add support for character devices | Felix Morgner | 1 | -1/+1 | |
| 2026-07-29 | kernel: allow reallocation of minor numbers | Felix Morgner | 1 | -0/+5 | |
| 2026-07-28 | x86_64: split lapic according to UDM | Felix Morgner | 3 | -42/+10 | |
