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:
parent
c3f5edf3dc
commit
936e0ad3da
@ -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_ */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user