From: Mark Wooding Date: Sun, 5 Apr 2020 23:52:56 +0000 (+0000) Subject: base/dispatch.c: Make `cpuid_feature_p' more easily extensible. X-Git-Tag: 2.6.0~5 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/0ed9f882cdf9d0b4428459f7d5496610d53ca4c9?hp=0ed9f882cdf9d0b4428459f7d5496610d53ca4c9 base/dispatch.c: Make `cpuid_feature_p' more easily extensible. It turns out that Intel scatter feature flags throughout the various CPUID leaves. Change the interface for checking these flags so that we can cover more ground without too much extra work. * Firstly, rename the function to `cpuid_feature_p' because it's only really useful for checking one feature at a time. * Secondly, make the first argument be a code indicating which particular `cpuid' output we're interested in; the second is still a mask used to check for the bit we're interested in. Obviously this involves changing all of the callers too. ---