Page MenuHomeFreeBSD

dev/fdt: Add fdt_foreach_mem_region
ClosedPublic

Authored by andrew on Apr 7 2025, 5:45 PM.
Tags
None
Referenced Files
F168717860: D49697.id153305.diff
Sat, Aug 29, 7:19 PM
Unknown Object (File)
Sat, Aug 29, 7:56 AM
Unknown Object (File)
Fri, Aug 28, 6:52 PM
Unknown Object (File)
Thu, Aug 27, 7:55 PM
Unknown Object (File)
Thu, Aug 27, 7:55 AM
Unknown Object (File)
Wed, Aug 26, 7:40 PM
Unknown Object (File)
Wed, Aug 26, 6:51 PM
Unknown Object (File)
Wed, Aug 26, 5:32 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