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.
Differential D50083
Make sure the memory region definitions are zeroed before use. kp on Wed, Apr 30, 1:49 PM. Authored by Tags None Referenced Files
Details
Since only 32bits of the values are read from the fdt, the existing values Fixes the boot on the Netgate 3100.
Diff Detail
Event TimelineComment Actions 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. Comment Actions 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. See: https://github.com/strejda/tegra/commit/70eb56b778cd9c968f19b5f04be7b2e0032ca398 |