HomeFreeBSD

MFC r304165,r304166:

Description

MFC r304165,r304166:

Like scr_lock, the grab count needs to be per-physical-device to work.

This bug corrupted the grab count on both vtys if the ungrabbed vty is
different from the console, and failed to restore the keyboard state
on the ungrabbed vty, but not restoring the latter usually left the
keyboard mode part of it uncorrupted at 1 (K_XLATE), while after this
fix the keyboard mode part is usually corrupted to 0 (K_RAW).

While here, rename the grab count from 'grabbed' to grab_level.

Details

Provenance
eadlerAuthored on
Parents
rS330835: at_rtc: check in ACPI FADT boot flags if the RTC is present
Branches
Unknown
Tags
Unknown