Module Name: src
Committed By: phx
Date: Thu Aug 4 20:02:48 UTC 2011
Modified Files:
src/sys/arch/powerpc/oea: ofwoea_machdep.c
Log Message:
Drop into ddb, when requested by ofwboot (-d option).
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/powerpc/oea/ofwoea_machdep.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/oea/ofwoea_machdep.c
diff -u src/sys/arch/powerpc/oea/ofwoea_machdep.c:1.25 src/sys/arch/powerpc/oea/ofwoea_machdep.c:1.26
--- src/sys/arch/powerpc/oea/ofwoea_machdep.c:1.25 Wed Jul 27 22:04:23 2011
+++ src/sys/arch/powerpc/oea/ofwoea_machdep.c Thu Aug 4 20:02:48 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwoea_machdep.c,v 1.25 2011/07/27 22:04:23 macallan Exp $ */
+/* $NetBSD: ofwoea_machdep.c,v 1.26 2011/08/04 20:02:48 phx Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.25 2011/07/27 22:04:23 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofwoea_machdep.c,v 1.26 2011/08/04 20:02:48 phx Exp $");
#include "opt_ppcarch.h"
#include "opt_compat_netbsd.h"
@@ -252,6 +252,11 @@
/* CPU clock stuff */
set_timebase();
+
+#ifdef DDB
+ if (boothowto & RB_KDB)
+ Debugger();
+#endif
}
void