Page MenuHomeFreeBSD

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

Authored by kp on Wed, Apr 30, 1:49 PM.
Tags
None
Referenced Files
F116543501: D50083.id.diff
Wed, May 7, 4:55 PM
Unknown Object (File)
Tue, May 6, 12:36 PM
Unknown Object (File)
Tue, May 6, 9:03 AM
Unknown Object (File)
Tue, May 6, 7:12 AM
Unknown Object (File)
Mon, May 5, 2:54 AM
Unknown Object (File)
Sun, May 4, 7:59 PM
Unknown Object (File)
Thu, May 1, 8:54 AM
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.Wed, Apr 30, 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.Wed, Apr 30, 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