summaryrefslogtreecommitdiffstats
path: root/discover/hostboot.c
diff options
context:
space:
mode:
authorSam Mendoza-Jonas <sam@mendozajonas.com>2016-02-26 10:39:55 +1100
committerSam Mendoza-Jonas <sam@mendozajonas.com>2016-02-26 12:39:37 +1100
commit72928ed32ab3684be74e4a3b90329dee7cfa6bbb (patch)
tree27a1237cee90d222e0dc7b0e361e4c683270ec57 /discover/hostboot.c
parent11284780b9aa525dd659bd85d6374040630db008 (diff)
downloadtalos-petitboot-72928ed32ab3684be74e4a3b90329dee7cfa6bbb.tar.gz
talos-petitboot-72928ed32ab3684be74e4a3b90329dee7cfa6bbb.zip
Use 'Primary' instead of 'Current' for flash sides
When queried libflash will return the 'first' flash side (ie. the one with the lowest TOC address), however we label this the 'Current' side which is incorrect if the machine has booted from the alternate side. A future fix will inlcude additional platform logic to determine which flash side is current; in the interim label the first flash side as 'Primary' instead of 'Current'. Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/hostboot.c')
-rw-r--r--discover/hostboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/hostboot.c b/discover/hostboot.c
index 9a27b0f..bc9a3ba 100644
--- a/discover/hostboot.c
+++ b/discover/hostboot.c
@@ -12,11 +12,11 @@ void hostboot_load_versions(struct system_info *info)
{
int n = 0;
- n = flash_parse_version(info, &info->platform_current, true);
+ n = flash_parse_version(info, &info->platform_primary, true);
if (n < 0)
pb_log("Failed to read platform versions for current side\n");
else
- info->n_current = n;
+ info->n_primary = n;
n = flash_parse_version(info, &info->platform_other, false);
if (n < 0)
OpenPOWER on IntegriCloud