Fix the new (kbdio) keyboard layer to correctly work if PCVT_SCANSET == 2

even early in the boot process (boot -c or -d).

Submitted by:	yokota@zodiac.mech.utsunomiya-u.ac.jp (Kazutaka YOKOTA)
This commit is contained in:
Joerg Wunsch 1997-03-07 08:53:16 +00:00
parent c75354732f
commit f9ba24beed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23480

View File

@ -1092,6 +1092,14 @@ pccnprobe(struct consdev *cp)
* The system clock has not been calibrated...
*/
reset_keyboard = 0;
#if PCVT_SCANSET == 2
/*
* Turn off scancode translation early so that UserConfig
* and DDB can read the keyboard.
*/
empty_both_buffers(kbdc, 10);
set_controller_command_byte(kbdc, KBD_TRANSLATION, 0);
#endif /* PCVT_SCANSET == 2 */
#endif /* _I386_ISA_KBDIO_H_ */
/*