mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 00:02:44 +00:00
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
c75354732f
commit
f9ba24beed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23480
@ -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