summaryrefslogtreecommitdiffstats
path: root/stage1/main.c
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-11-08 19:25:49 -0700
committerGitHub <noreply@github.com>2020-11-08 19:25:49 -0700
commitfabe3414d5e40beba5f97f8c4de7b71bff52d2a6 (patch)
treec81a8ae3b89bdf8f3064c5e683327d2c70fcec1d /stage1/main.c
parent742e44a544d6145d3c95232a13f8a307dd9dce24 (diff)
downloadbcm5719-ortega-fabe3414d5e40beba5f97f8c4de7b71bff52d2a6.tar.gz
bcm5719-ortega-fabe3414d5e40beba5f97f8c4de7b71bff52d2a6.zip
stage1: Fix a regression that broke reading NVRam. (#170)v0.4.62
Diffstat (limited to 'stage1/main.c')
-rw-r--r--stage1/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stage1/main.c b/stage1/main.c
index 9869b7a..699bee5 100644
--- a/stage1/main.c
+++ b/stage1/main.c
@@ -193,7 +193,7 @@ int main()
if (NVRam_acquireLock())
{
NVRam_enable();
- NVRam_read(0, (uint32_t *)gNVMContents.vpd.bytes, sizeof(gNVMContents.vpd.bytes) / sizeof(uint32_t));
+ NVRam_read(0, (uint32_t *)&gNVMContents, sizeof(gNVMContents) / sizeof(uint32_t)); //lint !e740
find_vpd();
OpenPOWER on IntegriCloud