Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc convert a failure to call OF for a ...



details:   https://anonhg.NetBSD.org/src/rev/f82c915019e8
branches:  trunk
changeset: 326069:f82c915019e8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jan 17 09:09:40 2014 +0000

description:
convert a failure to call OF for a reboot call into a panic() instead
of a hard hang.

diffstat:

 sys/arch/powerpc/powerpc/openfirm.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r a0852118a6f8 -r f82c915019e8 sys/arch/powerpc/powerpc/openfirm.c
--- a/sys/arch/powerpc/powerpc/openfirm.c       Fri Jan 17 07:44:16 2014 +0000
+++ b/sys/arch/powerpc/powerpc/openfirm.c       Fri Jan 17 09:09:40 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.c,v 1.22 2013/05/12 13:50:11 macallan Exp $   */
+/*     $NetBSD: openfirm.c,v 1.23 2014/01/17 09:09:40 mrg Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -34,7 +34,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.22 2013/05/12 13:50:11 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.23 2014/01/17 09:09:40 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -615,8 +615,8 @@
        ofw_stack();
        ofbcopy(bootspec, OF_buf, l + 1);
        args.bootspec = OF_buf;
-       openfirmware(&args);
-       while (1);                      /* just in case */
+       if (openfirmware(&args) == -1)
+               panic("OF_boot didn't");
 }
 
 void



Home | Main Index | Thread Index | Old Index