Page MenuHomeFreeBSD

dev/fdt: Add fdt_foreach_mem_region
ClosedPublic

Authored by andrew on Apr 7 2025, 5:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 25, 6:43 PM
Unknown Object (File)
Sun, May 24, 6:46 PM
Unknown Object (File)
Fri, May 22, 11:52 AM
Unknown Object (File)
Apr 30 2026, 1:05 AM
Unknown Object (File)
Apr 29 2026, 5:14 PM
Unknown Object (File)
Apr 29 2026, 9:00 AM
Unknown Object (File)
Apr 29 2026, 9:00 AM
Unknown Object (File)
Apr 28 2026, 6:41 PM
Subscribers

Details

Summary

This is used early in the boot to find physical memory. Previously it
needed an array of memory regions to be passed in. We keep finding
hardware where this array is too small causing the kernel to smash the
stack.

Replace with a function that takes a callback that can insert the
memory into the physical map directly.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable