diff options
Diffstat (limited to 'usr/src/uts/i86pc/os/machdep.c')
| -rw-r--r-- | usr/src/uts/i86pc/os/machdep.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/uts/i86pc/os/machdep.c b/usr/src/uts/i86pc/os/machdep.c index 30861022a6..d39fde3140 100644 --- a/usr/src/uts/i86pc/os/machdep.c +++ b/usr/src/uts/i86pc/os/machdep.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -130,6 +130,11 @@ extern void audit_enterprom(int); extern void audit_exitprom(int); /* + * Occassionally the kernel knows better whether to power-off or reboot. + */ +int force_shutdown_method = AD_UNKNOWN; + +/* * The panicbuf array is used to record messages and state: */ char panicbuf[PANICBUFSIZE]; @@ -174,6 +179,9 @@ mdboot(int cmd, int fcn, char *mdep, boolean_t invoke_cb) affinity_set(CPU_CURRENT); } + if (force_shutdown_method != AD_UNKNOWN) + fcn = force_shutdown_method; + /* * XXX - rconsvp is set to NULL to ensure that output messages * are sent to the underlying "hardware" device using the |
