X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fhostboot.c;fp=discover%2Fhostboot.c;h=9a27b0fc29a5514a5cd62c3e3934a5849e7689d8;hb=d974c3c39237c8e94bb3a51d3511d18dea01043e;hp=0000000000000000000000000000000000000000;hpb=aaeba8e515e6b3416718b7feac985f01fb948b8f;p=petitboot diff --git a/discover/hostboot.c b/discover/hostboot.c new file mode 100644 index 0000000..9a27b0f --- /dev/null +++ b/discover/hostboot.c @@ -0,0 +1,26 @@ +#include +#include +#include + +#include +#include +#include + +#include "hostboot.h" + +void hostboot_load_versions(struct system_info *info) +{ + int n = 0; + + n = flash_parse_version(info, &info->platform_current, true); + if (n < 0) + pb_log("Failed to read platform versions for current side\n"); + else + info->n_current = n; + + n = flash_parse_version(info, &info->platform_other, false); + if (n < 0) + pb_log("Failed to read platform versions for other side\n"); + else + info->n_other = n; +}