Added option PROBE_KEYBOARD_LOCK which gives a serial console if the
keyboard is locked.
This commit is contained in:
parent
4fd6d53a24
commit
50ec4d5916
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18828
@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.46 1996/10/08 22:18:34 bde Exp $
|
||||
# $Id: Makefile,v 1.47 1996/10/08 22:35:48 bde Exp $
|
||||
#
|
||||
|
||||
PROG= boot
|
||||
@ -17,6 +17,9 @@ CFLAGS+= ${CWARNFLAGS}
|
||||
# Probe the keyboard and use the serial console if the keyboard isn't found.
|
||||
#CFLAGS+= -DPROBE_KEYBOARD
|
||||
|
||||
# Probe the keyboard lock and use the serial console if the keyboard is locked.
|
||||
CFLAGS+= -DPROBE_KEYBOARD_LOCK
|
||||
|
||||
# Force use of the serial console (after probing the keyboard if
|
||||
# PROBE_KEYBOARD is defined).
|
||||
#CFLAGS+= -DFORCE_COMCONSOLE
|
||||
|
@ -24,7 +24,7 @@
|
||||
* the rights to redistribute these changes.
|
||||
*
|
||||
* from: Mach, [92/04/03 16:51:14 rvb]
|
||||
* $Id: boot.c,v 1.58 1996/09/07 20:18:04 bde Exp $
|
||||
* $Id: boot.c,v 1.59 1996/09/14 07:11:58 bde Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -56,6 +56,9 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
#include <a.out.h>
|
||||
#include <sys/reboot.h>
|
||||
#include <machine/bootinfo.h>
|
||||
#ifdef PROBE_KEYBOARD_LOCK
|
||||
#include <machine/cpufunc.h>
|
||||
#endif
|
||||
|
||||
#define ouraddr (BOOTSEG << 4) /* XXX */
|
||||
|
||||
@ -86,6 +89,14 @@ boot(int drive)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef PROBE_KEYBOARD_LOCK
|
||||
if (!(inb(0x64) & 0x10)) {
|
||||
init_serial();
|
||||
loadflags |= RB_SERIAL;
|
||||
printf("\nKeyboard locked.");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FORCE_COMCONSOLE
|
||||
init_serial();
|
||||
loadflags |= RB_SERIAL;
|
||||
|
Loading…
Reference in New Issue
Block a user