Files
RedBear-OS/local
vasilito 23c963c8ab quirks: R7 audit — OSI Windows 10/11 + bit 14/15
The acpid `_OSI` interceptor was incomplete: firmware that
calls `_OSI("Windows 2015")` or `_OSI("Windows 2020")`
would fall through to the AML interpreter and return 1 (true)
even on systems with `OSI_DISABLE_*` flags set, because
the interceptor only knew about Vista/7/8 strings.

- redox-driver-sys::quirks::AcpiQuirkFlags gains
  OSI_DISABLE_WIN10 (bit 14) and OSI_DISABLE_WIN11 (bit 15)
  with explicit no-collision guard against the existing
  R11/R21 bits (0-13).
- ACPI_FLAG_NAMES in toml_loader.rs maps
  `osi_disable_win10` and `osi_disable_win11` to the
  new bitflag constants.
- acpid::acpi::AcpiContext::try_intercept_osi now matches
  "Windows 2015" → OSI_DISABLE_WIN10 and "Windows 2020"
  → OSI_DISABLE_WIN11, alongside the existing Vista/7/8
  string matches.

Source: linux-7.1 drivers/acpi/osi.c (dmi_system_id[] for
Win10/11 laptops that need the kernel to lie about the
host OS to keep ACPI firmware from misbehaving).

cargo test --package redox-driver-sys: 132 passed; 0 failed.
2026-06-08 03:49:25 +03:00
..