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, Dec 15, 5:05 PM
Unknown Object (File)
Sat, Nov 29, 10:29 AM
Unknown Object (File)
Nov 22 2025, 12:18 AM
Unknown Object (File)
Nov 19 2025, 6:13 AM
Unknown Object (File)
Nov 15 2025, 11:50 AM
Unknown Object (File)
Nov 10 2025, 2:35 AM
Unknown Object (File)
Nov 1 2025, 11:16 AM
Unknown Object (File)
Oct 26 2025, 3:00 AM
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