aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/devices/device.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-11-13 11:40:07 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-11-22 14:20:35 +0100
commit60ba364ec3c458b6bcf3d048781c8dd88937cd0e (patch)
treee1496703981b5f64d396e2b11c5c914c3124ff62 /kernel/kapi/devices/device.cpp
parent32a0bc18a741f5599e6447add4cd69a6e25a31be (diff)
downloadkernel-60ba364ec3c458b6bcf3d048781c8dd88937cd0e.tar.xz
kernel-60ba364ec3c458b6bcf3d048781c8dd88937cd0e.zip
kapi/memory: fix page unmap logic
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.
Diffstat (limited to 'kernel/kapi/devices/device.cpp')
0 files changed, 0 insertions, 0 deletions