The Lenovo X13s has broken firmware that makes it impossible to use PAC.
authorkettenis <kettenis@openbsd.org>
Thu, 10 Aug 2023 19:29:32 +0000 (19:29 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 10 Aug 2023 19:29:32 +0000 (19:29 +0000)
commit83e0a8ee3ac8e296e818d14426c6708a905425f2
treee4cb3e75732c18fd6848c802b8e3a3ad0bdd1a6a
parent26a251e7fa113f5fa42907a30d8d66d2106424d8
The Lenovo X13s has broken firmware that makes it impossible to use PAC.
But other machines that use the same SoC work just fine.  So instead of
disabling this feature on all CPUs that implement the architectured
algorithm, add an SMBIOS-based check that just disables the feature on
these machines.  This means we need to attach smbios0 before cpu0, which
in turn means attaching efi0 earlier.

tested by patrick@
sys/arch/arm64/arm64/cpu.c
sys/arch/arm64/arm64/pmap.c
sys/arch/arm64/dev/mainbus.c