| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 23 hours | kapi/memory: replace mmio_region API with mmio_window | Felix Morgner | 3 | -87/+584 | |
| 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. | |||||
| 23 hours | kapi/memory: carry hw_base offset forward in mapping | Felix Morgner | 1 | -1/+2 | |
| 23 hours | memory: harden MMIO mappings and update docs. | Felix Morgner | 1 | -0/+7 | |
| 23 hours | memory: improve MMIO allocation/mapping robustness | Felix Morgner | 1 | -23/+56 | |
| 23 hours | kapi/memory: map MMIO regions more securely | Felix Morgner | 1 | -1/+1 | |
| 23 hours | kapi/memory: unmap MMIO regions on release | Felix Morgner | 1 | -0/+10 | |
| 23 hours | kapi/memory: fix page unmap logic | Felix Morgner | 1 | -4/+4 | |
| 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. | |||||
| 2026-09-29 | kapi/interrupts: add tests | Felix Morgner | 2 | -0/+254 | |
| 2026-09-10 | kapi/system: reduce panic buffer size | Felix Morgner | 1 | -5/+85 | |
| 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 | 3 | -13/+14 | |
| 2026-09-10 | x86_64: replace raw pointers with observer_ptr | Felix Morgner | 1 | -4/+6 | |
| 2026-09-09 | chore: replace some naked pointers | Felix Morgner | 8 | -39/+42 | |
| 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-03 | chore: fix message prefixes | Felix Morgner | 1 | -2/+2 | |
| 2026-09-01 | chore: clean up facet ids | Felix Morgner | 4 | -36/+39 | |
| 2026-08-29 | chore: normalize panic messages | Felix Morgner | 4 | -10/+10 | |
| 2026-08-29 | chore: apply stylistic cleanups | Felix Morgner | 4 | -7/+8 | |
| 2026-08-27 | kapi/fs: implement read_directory | Felix Morgner | 2 | -9/+11 | |
| 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: add stub implementation of read_directory | Felix Morgner | 2 | -0/+20 | |
| 2026-08-26 | kernel: split vfs and filesystem drivers | Felix Morgner | 2 | -26/+21 | |
| 2026-08-26 | kernel/fs: vfs: make file descriptor polymorphic | Felix Morgner | 1 | -4/+13 | |
| 2026-08-18 | kapi/fs: fix wrong test argument | Felix Morgner | 1 | -1/+1 | |
| 2026-08-18 | kstd: introduce basic offset type | Felix Morgner | 2 | -7/+4 | |
| 2026-08-18 | kstd: flatten units namespace | Felix Morgner | 3 | -7/+7 | |
| 2026-08-18 | kstd: clean up units | Felix Morgner | 1 | -1/+1 | |
| 2026-08-18 | kapi: implement seek support | Felix Morgner | 2 | -0/+27 | |
| 2026-08-17 | chore: remove superfluous include | Felix Morgner | 1 | -1/+0 | |
| 2026-08-17 | chore: replace expected by result | Felix Morgner | 1 | -7/+6 | |
| 2026-08-17 | kapi: port block_special_file to std::span | Felix Morgner | 1 | -2/+2 | |
| 2026-08-17 | kapi: add power management support to drivers | Felix Morgner | 3 | -0/+308 | |
| 2026-07-30 | kernel: implement dev zero and null | Felix Morgner | 2 | -5/+22 | |
| 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 | 6 | -38/+5 | |
| 2026-07-27 | x86_64: port PIT to devices resources | Felix Morgner | 1 | -1/+2 | |
| 2026-07-27 | kapi: fix device resource lookup | Felix Morgner | 2 | -5/+321 | |
| 2026-07-27 | kapi: add device resources | Felix Morgner | 2 | -0/+444 | |
| 2026-07-27 | kapi: fix driver registry locking | Felix Morgner | 4 | -12/+125 | |
| 2026-07-26 | kapi/bus: extend stress tests | Felix Morgner | 1 | -2/+79 | |
| 2026-07-26 | kapi/bus: lock correct mutex | Felix Morgner | 1 | -1/+1 | |
| 2026-07-26 | build: add tsan build | Felix Morgner | 2 | -5/+9 | |
| 2026-07-26 | kapi/devices: implement locking discipline | Felix Morgner | 4 | -107/+233 | |
| 2026-07-26 | kapi: add tracked mutex tests | Felix Morgner | 2 | -5/+79 | |
| 2026-07-26 | kapi: implement a simple, tracked mutex | Felix Morgner | 1 | -0/+55 | |
| 2026-07-26 | kernel: add devfs live-update tests | Felix Morgner | 1 | -0/+11 | |
| 2026-07-26 | kapi: implement device removal | Felix Morgner | 1 | -6/+76 | |
| 2026-07-26 | kapi/device: allow removing devices from busses | Felix Morgner | 3 | -2/+129 | |
| 2026-07-26 | kapi: move protocol pointer to base bus | Felix Morgner | 3 | -33/+20 | |
| 2026-07-26 | chore: minor cleanups after refactoring | Felix Morgner | 2 | -19/+17 | |
| 2026-07-26 | chore: replace "interface" with "facet" | Felix Morgner | 11 | -333/+351 | |
| 2026-07-25 | kapi: introduce the "bus" facet | Felix Morgner | 1 | -0/+10 | |
| 2026-07-25 | kapi: introduce driver names | Felix Morgner | 3 | -5/+23 | |
