Page MenuHomeFreeBSD

Make sure the memory region definitions are zeroed before use.
ClosedPublic

Authored by kp on Apr 30 2025, 1:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 9 2025, 11:38 PM
Unknown Object (File)
Aug 31 2025, 11:36 PM
Unknown Object (File)
Aug 18 2025, 5:08 PM
Unknown Object (File)
Aug 18 2025, 1:13 PM
Unknown Object (File)
Aug 14 2025, 3:17 PM
Unknown Object (File)
Aug 14 2025, 7:56 AM
Unknown Object (File)
Aug 12 2025, 3:06 AM
Unknown Object (File)
Aug 11 2025, 7:22 PM
Subscribers

Details

Summary

Since only 32bits of the values are read from the fdt, the existing values
can compromise the results.

Fixes the boot on the Netgate 3100.

Diff Detail

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

Event Timeline

kp requested review of this revision.Apr 30 2025, 1:49 PM

(Work by Luiz Souza <luiz@netgate.com>)

andrew added a reviewer: mmel.
andrew added a subscriber: mmel.

I thought @mmel found the issue. The issue is previously we would zero the stack & the array used was the first thing in the stack location so was zero, however this shouldn't have been relied on.

This revision is now accepted and ready to land.Apr 30 2025, 2:40 PM

imho, using two temporary ulong variables for function calls and assigning them to mem_region members gives the compiler a chance to complain. But both versions are OK for me.
And my apology for not committed this fix in time...
Michal

See: https://github.com/strejda/tegra/commit/70eb56b778cd9c968f19b5f04be7b2e0032ca398