Set `boothowto' approapiately if our console is a serial one.
The "debug.boothowto" sysctl can now be used (as on the i386) to determine if the console is a serial one.
This commit is contained in:
parent
7090abf525
commit
628224b176
@ -28,6 +28,7 @@
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
@ -102,6 +103,7 @@ api_up1000_cons_init()
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -76,6 +76,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
@ -200,6 +201,7 @@ dec_1000a_cons_init()
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
@ -130,6 +131,8 @@ dec_2100_a50_cons_init()
|
||||
comconsole = 0;
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
@ -119,6 +120,8 @@ dec_2100_a500_cons_init()
|
||||
comconsole = 0;
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
@ -139,6 +140,8 @@ dec_axppci_33_cons_init()
|
||||
comconsole = 0;
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
@ -113,6 +114,7 @@ dec_eb164_cons_init()
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -51,6 +51,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
@ -146,6 +147,7 @@ dec_eb64plus_cons_init()
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
@ -123,6 +124,7 @@ dec_kn20aa_cons_init()
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
@ -123,6 +124,8 @@ dec_kn300_cons_init()
|
||||
comconsole = 0;
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
@ -122,6 +123,7 @@ st550_cons_init()
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include <sys/param.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
@ -109,6 +110,7 @@ st6600_cons_init()
|
||||
if (siocnattach(0x3f8, comcnrate))
|
||||
panic("can't init serial console");
|
||||
|
||||
boothowto |= RB_SERIAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1002,7 +1002,6 @@ alpha_init(pfn, ptb, bim, bip, biv)
|
||||
* Look at arguments passed to us and compute boothowto.
|
||||
*/
|
||||
|
||||
boothowto = 0;
|
||||
#ifdef KADB
|
||||
boothowto |= RB_KDB;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user