Module Name: src
Committed By: joerg
Date: Thu Aug 7 09:08:09 UTC 2014
Modified Files:
src/sys/arch/powerpc/powerpc: openfirm.c
Log Message:
Panic after openfirm, it is not supposed to return.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 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.24 src/sys/arch/powerpc/powerpc/openfirm.c:1.25
--- src/sys/arch/powerpc/powerpc/openfirm.c:1.24 Fri Feb 28 05:45:26 2014
+++ src/sys/arch/powerpc/powerpc/openfirm.c Thu Aug 7 09:08:09 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: openfirm.c,v 1.24 2014/02/28 05:45:26 matt Exp $ */
+/* $NetBSD: openfirm.c,v 1.25 2014/08/07 09:08:09 joerg 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.24 2014/02/28 05:45:26 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.25 2014/08/07 09:08:09 joerg 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;
- if (openfirmware(&args) == -1)
- panic("OF_boot didn't");
+ openfirmware(&args);
+ panic("OF_boot didn't");
}
void