]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/i386/pc/init: Flush cache only on VIA C3 and earlier
authorValdikSS <iam@valdikss.org.ru>
Fri, 6 Oct 2023 17:13:51 +0000 (20:13 +0300)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 12 Oct 2023 17:18:58 +0000 (19:18 +0200)
commitcab04dcda34a9419c7367279c2f309d4becde184
treee8d8677f927a8f17656f6080f328cedbc4a15bc9
parent3c7e842571a79ecc69ee3871849a95d202161c78
kern/i386/pc/init: Flush cache only on VIA C3 and earlier

The code flushes the cache on VIA processors unconditionally which
is excessive. Check for cpuid family and execute wbinvd only on C3
and earlier.

Fixes: https://savannah.gnu.org/bugs/?45149
Fixes: 25492a0f0 (Add wbinvd around bios call.)
Signed-off-by: ValdikSS <iam@valdikss.org.ru>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/i386/pc/init.c