X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Fyaboot.c;h=3d93275018027376cafffb685104a0fbfea586d0;hp=5fc1213114d0a651123d1b71cba1eb9b8fb723a6;hb=0c0a18b7a1a6b44963da4469d21428e76f9c2b30;hpb=526b77920b050e1e37e842e8def4a5e7fb04cee6 diff --git a/second/yaboot.c b/second/yaboot.c index 5fc1213..3d93275 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -1702,7 +1702,8 @@ yaboot_main(void) DEBUG_F("/chosen/bootargs = %s\n", bootargs); prom_get_chosen("bootpath", bootdevice, BOOTDEVSZ); DEBUG_F("/chosen/bootpath = %s\n", bootdevice); - prom_get_options("ibm,fw-nbr-reboots",fw_nbr_reboots, FW_NBR_REBOOTSZ); + if (prom_get_options("ibm,client-architecture-support-reboot",fw_nbr_reboots, FW_NBR_REBOOTSZ) == -1 ) + prom_get_options("ibm,fw-nbr-reboots",fw_nbr_reboots, FW_NBR_REBOOTSZ); fw_reboot_cnt = simple_strtol(fw_nbr_reboots,&endp,10); if (fw_reboot_cnt > 0L) prom_get_options("boot-last-label", bootlastlabel, BOOTLASTSZ);