Module Name: src
Committed By: mrg
Date: Fri Jan 17 09:09:40 UTC 2014
Modified Files:
src/sys/arch/powerpc/powerpc: openfirm.c
Log Message:
convert a failure to call OF for a reboot call into a panic() instead
of a hard hang.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/powerpc/powerpc/openfirm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/powerpc/openfirm.c
diff -u src/sys/arch/powerpc/powerpc/openfirm.c:1.22 src/sys/arch/powerpc/powerpc/openfirm.c:1.23
--- src/sys/arch/powerpc/powerpc/openfirm.c:1.22 Sun May 12 13:50:11 2013
+++ src/sys/arch/powerpc/powerpc/openfirm.c Fri Jan 17 09:09:40 2014
@@ -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 @@ OF_boot(const char *bootspec)
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