aboutsummaryrefslogtreecommitdiff
path: root/kernel/CMakeLists.txt
AgeCommit message (Collapse)AuthorFilesLines
24 hourskernel/devices: extract bus scanning implementationfmorgner/pcie-scanFelix Morgner1-0/+1
This change extracts the PCI bus scanning logic, which previously was hidden inside an anonymous namespace, into a dedicated function. This allows for the implementation to be tested independently.
24 hourskernel/devices: introduce PCI ecam_segment abstractionFelix Morgner1-1/+2
Previously, ECAM access was implemented "in-place" inside the PCI scan function. This meant that any checks were ad-hoc and not easily reusable or testable. Therefore, this change introduces a dedicated, reusable abstraction for ECAM segment access. It validates segment descriptors received from the platform and ensures no out-of-bounds buses are accessed at runtime. Construction of an ecam_segment will always succeed. If the firmware or platform data does not describe a valid segment, the ecam_segment will behave as if it had a size of zero, with a kernel log indicating the invalid segment. Attempting to map a bus that is out-of-bounds for a given ecam_segment will return a runtime error. If the system's MMIO space is insufficient to accommodate the mapping of a valid bus in an ecam_segment, a runtime error will be returned. Furthermore, this change introduces the kernel::devices::pci namespace. PCI initialization and scanning functionality, previously hosted in kernel/kernel/devices/pci_express.{cpp,hpp}, has been relocated and renamed to kernel/kernel/devices/pci/init.{cpp,hpp}. The initialization function of the PCI subsystem has been renamed from kernel::devices::init_pci_express_devices to kernel::devices::pci::init. The observable behavior of the PCI scan remains unchanged. Tests have been added to validate the behavior of ecam_segment against its contract.
24 hourskapi/memory: replace mmio_region API with mmio_windowFelix Morgner1-0/+1
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 hoursdev/pcie: implement initial detectionFelix Morgner1-0/+1
11 daysbuild: fix test executablesFelix Morgner1-0/+4
11 dayslibs/acpi: extend MCFG table interfaceFelix Morgner1-18/+0
11 daystest: apply review feedback for Catch2 string makersmanuel1-1/+1
- restrict the -include force-include flag to GCC and Clang - drop the redundant explicit include in the kernel string maker tests - apply clang-format Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 dayskernel: add Catch2 string makers for printable test outputmanuel1-0/+4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-08-28kernel/vfs: replace owning_mount with driver_stateFelix Morgner1-0/+1
2026-08-26kernel: split vfs and filesystem driversFelix Morgner1-27/+27
2026-08-26kernel/fs: vfs: make file descriptor polymorphicFelix Morgner1-0/+2
2026-08-26kernel/fs: ext2: add a simple write batching typeFelix Morgner1-0/+1
2026-08-26kernel/fs: ext2: simplify directory iterationFelix Morgner1-0/+1
2026-08-26kernel/fs: extract module registrationsFelix Morgner1-0/+3
2026-08-26kernel/fs: rework filesystem probingFelix Morgner1-2/+1
2026-08-20build: clean up header set verificationFelix Morgner1-5/+1
2026-08-20build: improve linting exclusions for testsFelix Morgner1-27/+12
2026-08-17kapi: add power management support to driversFelix Morgner1-0/+1
2026-08-16build: don't predicate tests on general sanitizersFelix Morgner1-4/+4
2026-07-30kernel: implement dev zero and nullFelix Morgner1-4/+7
2026-07-28x86_64: split lapic according to UDMFelix Morgner1-1/+0
2026-07-26build: separate normal from stress testsFelix Morgner1-6/+12
2026-07-26build: add tsan buildFelix Morgner1-1/+1
2026-07-26kapi: implement a simple, tracked mutexFelix Morgner1-0/+1
2026-07-26chore: replace "interface" with "facet"Felix Morgner1-1/+1
2026-07-24kernel: move root busFelix Morgner1-1/+1
2026-07-24kernel: remove boot modules registryFelix Morgner1-2/+5
2026-07-24kapi: extract real boot module registry singletonFelix Morgner1-1/+1
2026-07-24kapi: formally extract device registryFelix Morgner1-0/+1
2026-07-24kernel: restructure devices and driversFelix Morgner1-1/+4
2026-07-24kernel: generalize test fixFelix Morgner1-0/+1
2026-07-23kernel: port ram disk to new driver architectureFelix Morgner1-2/+2
2026-07-23kapi: add driver registryFelix Morgner1-0/+1
2026-07-23kapi: introduce driver and bus protocolFelix Morgner1-0/+2
2026-07-23kerne: attach storage hierarchy to device treeFelix Morgner1-2/+1
2026-07-17kernel: introduce device_number abstractionFelix Morgner1-0/+1
2026-07-16chore: move system error implementation out of lineFelix Morgner1-0/+2
2026-07-16kernel: dissolve block device in favour of kapiFelix Morgner1-1/+0
2026-07-16kapi: introduce device interfacesFelix Morgner1-0/+1
2026-07-09cmake: extract test target creationFelix Morgner1-58/+6
2026-07-03kernel: fix test image pathFelix Morgner1-1/+1
2026-07-03kernel: rearrange sources according to p1204Felix Morgner1-69/+69
2026-06-15build: fix test reporter configurationFelix Morgner1-1/+1
2026-06-15bht: improve test resportingFelix Morgner1-1/+8
2026-06-02kernel/vfs: add type registry testsFelix Morgner1-0/+1
2026-06-02kernel/vfs: extract fs type registryFelix Morgner1-0/+1
2026-05-19build: clean up dependenciesFelix Morgner1-0/+3
2026-05-18ci: enable jUnit style test reportsFelix Morgner1-1/+1
2026-05-05Add tests for path utilityMarcel Braun1-0/+1
2026-04-26rename file_descriptor_table to open_file_tableLukas Oesch1-2/+2