aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorJean-Philippe Brucker <[email protected]>2020-02-27 09:34:47 +0100
committerWill Deacon <[email protected]>2020-03-02 12:10:38 +0000
commit9abd515a6e4a5c58c6eb4d04110430325eb5f5ac (patch)
treea28cd22425a5ecb8c68df9aec0ff08c26c041c91 /scripts/gcc-plugins/sancov_plugin.c
parent3ba52ad55b533760a1f65836aa0ec9d35e36bb4f (diff)
arm64: context: Fix ASID limit in boot messages
Since commit f88f42f853a8 ("arm64: context: Free up kernel ASIDs if KPTI is not in use"), the NUM_USER_ASIDS macro doesn't correspond to the effective number of ASIDs when KPTI is enabled. Get an accurate number of available ASIDs in an arch_initcall, once we've discovered all CPUs' capabilities and know if we still need to halve the ASID space for KPTI. Fixes: f88f42f853a8 ("arm64: context: Free up kernel ASIDs if KPTI is not in use") Reviewed-by: Vladimir Murzin <[email protected]> Signed-off-by: Jean-Philippe Brucker <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions