Marek Vasut c3c082aa43 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 <marek.vasut+renesas@mailbox.org>
2026-03-27 13:22:02 -06:00
..
2022-07-08 17:57:33 -04:00
2023-08-17 16:39:20 -04:00
2024-07-15 12:12:16 -06:00
2022-01-19 18:11:34 +01:00
2023-01-31 15:46:39 +01:00
2025-03-10 07:41:16 +01:00
2026-03-12 09:30:44 +01:00
2022-04-01 16:56:53 -04:00
2023-05-31 14:05:34 -04:00
2021-09-30 08:08:56 -04:00