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
..
2026-03-04 14:25:27 -06:00
2025-11-07 16:00:58 -06:00
2025-07-29 17:02:32 +02:00
2025-04-28 13:16:45 -06:00
2024-05-20 13:35:03 -06:00
2025-06-14 09:09:40 -06:00
2024-07-15 12:12:16 -06:00
2024-07-15 12:12:16 -06:00
2026-03-16 18:44:00 -03:00
2024-10-11 11:44:47 -06:00
2024-12-23 08:10:15 -03:00
2023-05-31 10:11:46 -04:00
2025-11-25 21:53:58 -03:00
2025-06-29 10:08:10 -03:00
2025-08-03 10:27:47 +02:00
2024-05-20 13:35:03 -06:00
2026-01-16 09:53:57 -06:00
2025-12-11 17:27:15 +01:00
2024-07-15 12:12:16 -06:00
2025-06-14 09:09:40 -06:00
2024-07-15 12:12:16 -06:00
2024-07-15 12:12:16 -06:00
2025-07-17 09:57:23 -03:00
2024-10-11 11:44:47 -06:00
2022-06-22 21:30:05 -04:00
2025-02-18 16:32:24 -06:00
2024-07-15 12:12:16 -06:00
2025-07-29 17:02:32 +02:00
2024-10-27 17:24:13 -06:00
2024-10-11 11:44:47 -06:00
2024-04-26 15:47:03 +08:00
2026-03-10 10:07:03 -06:00
2025-04-23 22:12:04 +08:00
2021-06-18 14:36:24 +08:00
2025-04-23 22:12:05 +08:00
2023-02-28 18:07:28 +08:00
2026-03-10 10:07:03 -06:00
2023-01-16 18:01:11 +08:00
2021-11-10 17:03:36 +01:00
2021-11-10 17:03:36 +01:00
2022-09-26 17:21:02 +02:00
2021-11-10 17:03:36 +01:00
2026-03-17 23:27:24 +01:00
2026-03-20 17:41:53 +02:00
2025-04-12 11:12:06 +03:00
2024-10-13 17:20:26 +03:00
2024-04-21 09:07:01 +02:00
2025-02-26 13:08:19 +02:00
2025-02-12 10:35:17 +02:00
2022-12-05 16:07:12 -05:00
2025-10-22 12:05:52 -06:00
2025-06-14 09:09:40 -06:00
2023-05-31 12:31:47 -04:00
2026-03-16 18:44:58 -03:00
2022-07-08 17:57:33 -04:00
2024-10-29 18:45:22 -06:00
2024-10-27 17:24:13 -06:00
2025-11-07 16:00:58 -06:00
2025-11-07 16:00:58 -06:00
2023-07-01 17:29:15 +02:00
2025-11-06 11:26:18 -06:00
2023-12-21 08:54:37 -05:00
2023-08-17 16:39:20 -04:00
2023-06-01 12:32:03 -04:00
2026-03-03 09:09:43 +01:00
2024-07-15 12:12:16 -06:00
2022-07-07 14:01:09 -04:00
2023-11-10 11:01:50 -05:00
2024-07-15 12:12:16 -06:00
2024-05-20 13:35:03 -06:00
2024-10-11 11:44:47 -06:00
2021-10-31 08:46:29 -04:00
2024-03-19 18:40:46 -04:00
2025-06-13 16:57:15 -06:00
2021-07-06 14:07:36 -04:00
2025-09-30 14:29:55 +08:00
2023-05-31 17:23:01 -04:00
2021-09-21 10:08:24 +03:00
2022-03-02 13:59:29 -05:00
2024-07-23 10:37:48 -06:00
2022-01-19 18:11:34 +01:00
2024-07-15 12:12:16 -06:00
2022-09-13 09:04:22 +02:00
2023-01-31 15:46:39 +01:00
2023-12-21 08:54:37 -05:00
2025-03-10 07:41:16 +01:00
2024-07-15 12:12:16 -06:00
2026-03-12 09:30:44 +01:00
2023-12-21 08:54:37 -05:00
2026-03-27 13:22:02 -06: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