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