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)
Thu, Apr 30, 1:05 AM
Unknown Object (File)
Wed, Apr 29, 5:14 PM
Unknown Object (File)
Wed, Apr 29, 9:00 AM
Unknown Object (File)
Wed, Apr 29, 9:00 AM
Unknown Object (File)
Tue, Apr 28, 6:41 PM
Unknown Object (File)
Tue, Apr 21, 8:04 AM
Unknown Object (File)
Tue, Apr 21, 8:01 AM
Unknown Object (File)
Mon, Apr 20, 7:10 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