diff options
| author | Marek Vasut <[email protected]> | 2026-03-16 00:50:33 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-03-27 13:22:02 -0600 |
| commit | c3c082aa437d077ab103a8f841137ac3a6fa57e2 (patch) | |
| tree | de6bc3ffc6dae7728f4d6b4ad47ee290abad79eb /include | |
| parent | b5517950e6ef9b631299f33a4ce84ba380928258 (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')
0 files changed, 0 insertions, 0 deletions
