summaryrefslogtreecommitdiff
path: root/usr/src/uts/i86xpv/os/xpv_panic.c
diff options
context:
space:
mode:
authorGary Mills <gary_mills@fastmail.fm>2012-04-05 08:47:21 -0500
committerRichard Lowe <richlowe@richlowe.net>2012-04-05 12:03:45 -0400
commit0d928757379972073af9fb22bdc827b74e8ba6ac (patch)
tree79bcc93c50934129469c5b7a8bb888f63f5bf1ba /usr/src/uts/i86xpv/os/xpv_panic.c
parentae7c44f85e4d160f633af16b1c85da812de7052c (diff)
downloadillumos-joyent-0d928757379972073af9fb22bdc827b74e8ba6ac.tar.gz
1469 ttyc/ttyd should be an allowed console device
Reviewed by: Milan Jurik <milan.jurik@xylab.cz> Reviewed by: Alexander Eremin <alexander.r.eremin@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/uts/i86xpv/os/xpv_panic.c')
-rw-r--r--usr/src/uts/i86xpv/os/xpv_panic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/uts/i86xpv/os/xpv_panic.c b/usr/src/uts/i86xpv/os/xpv_panic.c
index 132b9fb724..336fa406c3 100644
--- a/usr/src/uts/i86xpv/os/xpv_panic.c
+++ b/usr/src/uts/i86xpv/os/xpv_panic.c
@@ -19,6 +19,8 @@
* CDDL HEADER END
*/
/*
+ * Copyright (c) 2012 Gary Mills
+ *
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
*/
@@ -121,7 +123,7 @@ xpv_panic_putc(int m)
struct cons_polledio *c = cons_polledio;
/* This really shouldn't happen */
- if (console == CONS_HYPERVISOR)
+ if (boot_console_type(NULL) == CONS_HYPERVISOR)
return;
if (use_polledio == B_TRUE)
@@ -700,7 +702,7 @@ xpv_do_panic(void *arg)
* to stop.
*/
use_polledio = B_FALSE;
- if (console == CONS_HYPERVISOR) {
+ if (boot_console_type(NULL) == CONS_HYPERVISOR) {
bcons_device_change(CONS_HYPERVISOR);
} else if (cons_polledio != NULL &&
cons_polledio->cons_polledio_putchar != NULL) {