| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 34 hours | kapi/memory: replace mmio_region API with mmio_window | Felix Morgner | 1 | -87/+0 | |
| 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. | |||||
| 34 hours | kapi/memory: carry hw_base offset forward in mapping | Felix Morgner | 1 | -1/+2 | |
| 34 hours | memory: harden MMIO mappings and update docs. | Felix Morgner | 1 | -0/+7 | |
| 34 hours | memory: improve MMIO allocation/mapping robustness | Felix Morgner | 1 | -23/+56 | |
| 34 hours | kapi/memory: map MMIO regions more securely | Felix Morgner | 1 | -1/+1 | |
| 34 hours | kapi/memory: unmap MMIO regions on release | Felix Morgner | 1 | -0/+10 | |
| 34 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-10 | kernel: replace some more plain pointers | Felix Morgner | 1 | -4/+4 | |
| 2026-09-10 | x86_64: replace raw pointers with observer_ptr | Felix Morgner | 1 | -4/+6 | |
| 2026-08-29 | chore: normalize panic messages | Felix Morgner | 1 | -5/+5 | |
| 2026-08-18 | kstd: flatten units namespace | Felix Morgner | 1 | -1/+1 | |
| 2026-08-18 | kstd: clean up units | Felix Morgner | 1 | -1/+1 | |
| 2026-07-09 | kstd: rename kstd header to include hpp | Felix Morgner | 1 | -2/+2 | |
| 2026-04-23 | chore: banish relative includes | Felix Morgner | 1 | -4/+4 | |
| 2026-04-23 | chore: organize includes | Felix Morgner | 1 | -2/+2 | |
| 2026-04-08 | kapi: return region pair for MMIO allocation | Felix Morgner | 1 | -7/+18 | |
| 2026-04-08 | kapi: add basic support for MMIO mapping | Felix Morgner | 1 | -0/+25 | |
| 2026-04-01 | kernel/tests: implement basic simulated memory | Felix Morgner | 1 | -2/+6 | |
| 2026-03-18 | kstd: introduce strong type for memory amounts | Felix Morgner | 1 | -3/+7 | |
| 2026-03-16 | x86_64/memory: fix page table flag setting | Felix Morgner | 1 | -1/+1 | |
| 2026-03-16 | kapi/memory: support additional address arithmetic | Felix Morgner | 1 | -2/+1 | |
| 2026-03-16 | kernel/memory: implement basic free-list heap | Felix Morgner | 1 | -5/+4 | |
| 2026-03-14 | kapi/memory: introduce layout constant header | Felix Morgner | 1 | -1/+1 | |
| 2026-03-13 | kernel/memory: implement basic bitmap allocator | Felix Morgner | 1 | -3/+53 | |
| 2026-01-16 | chore: restructure namespaces | Felix Morgner | 1 | -0/+94 | |
