summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-02-06 09:27:18 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-02-06 09:27:18 +0000
commit30e91acea212aa37d3e2a0fe9d9fb5466f1e8d6f (patch)
tree9697c705d91f87ddc04717a3b7bd4b08dd9cce35 /sys/arch/macppc
parentba9fe398c45af1d10dc0da2445a83f4a2c4a573e (diff)
Call the debugger (bsd -d) before replacing the firmware console just like
we do for config (bsd -c) to be able to use ddb with USB keyboards.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/macppc/machdep.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c
index 69e864fed4a..2a35378a4c8 100644
--- a/sys/arch/macppc/macppc/machdep.c
+++ b/sys/arch/macppc/macppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.167 2015/01/20 19:43:21 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.168 2015/02/06 09:27:17 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -389,17 +389,18 @@ initppc(startkernel, endkernel, args)
printf("kernel does not support -c; continuing..\n");
#endif
}
- /*
- * Replace with real console.
- */
- ofwconprobe();
- consinit();
#ifdef DDB
if (boothowto & RB_KDB)
Debugger();
#endif
+ /*
+ * Replace with real console.
+ */
+ ofwconprobe();
+ consinit();
+
pool_init(&ppc_vecpl, sizeof(struct vreg), 16, 0, 0, "ppcvec", NULL);
}