summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-03-16 00:50:33 +0100
committerTom Rini <[email protected]>2026-03-27 13:22:02 -0600
commitc3c082aa437d077ab103a8f841137ac3a6fa57e2 (patch)
treede6bc3ffc6dae7728f4d6b4ad47ee290abad79eb /include/linux
parentb5517950e6ef9b631299f33a4ce84ba380928258 (diff)
arm: Introduce current_pl() on ARM32 and compatibility current_el()
The ARM32 has PLx Privilege Levels instead of Exception Levels present on ARM64. Introduce current_pl() function which reports the current PL on ARM32. Introduce current_el() for ARM32 as well and current_pl() for ARM64 which each call the other matching function. This is mainly mean to allow code like this to compile and retain compile time code coverage: if (IS_ENABLED(CONFIG_ARM64) && current_el() != 3) { ... } if (!IS_ENABLED(CONFIG_ARM64) && current_pl() != 0) { ... } Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions