Peter Hoyes
c48fec6e7c
armv8: Initialize CNTFRQ if at highest exception level
...
CNTFRQ_EL0 is only writable from the highest supported exception
level on the platform. For Armv8-A, this is typically EL3, but
technically EL2 and EL3 are optional so it may need to be
initialized at EL2 or EL1. For Armv8-R, the highest exception
level is always EL2.
This patch moves the initialization outside of the switch_el
block and uses a new macro branch_if_not_highest_el which
dynamically detects whether it is at the highest supported
exception level.
Linux's docs state that CNTFRQ_EL0 should be initialized by the
bootloader. If not set, the the U-Boot prompt countdown hangs.
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com >
2021-07-23 18:53:46 -04:00
..
2021-07-15 17:56:03 +05:30
2021-01-18 15:23:06 -05:00
2020-04-28 15:57:58 -04:00
2020-07-29 10:13:41 -04:00
2021-03-05 10:25:41 +05:30
2020-05-18 21:19:23 -04:00
2020-12-13 16:51:09 -07:00
2021-06-09 13:03:33 +02:00
2021-04-08 20:29:52 +02:00
2021-07-17 13:12:23 +02:00
2021-06-09 13:03:47 +02:00
2021-07-06 14:11:50 -04:00
2021-02-08 14:01:19 +05:30
2020-08-03 22:19:54 -04:00
2021-04-06 11:10:29 +02:00
2021-01-23 13:40:29 +01:00
2021-07-10 16:53:34 +02:00
2021-01-23 13:40:29 +01:00
2021-04-08 09:18:29 +02:00
2021-01-23 13:40:29 +01:00
2020-07-17 09:30:13 -04:00
2021-01-23 13:40:29 +01:00
2021-01-23 13:40:29 +01:00
2020-07-17 09:30:13 -04:00
2020-08-25 08:01:16 +02:00
2020-08-25 08:01:16 +02:00
2021-07-15 17:56:04 +05:30
2020-05-18 14:54:24 -04:00
2020-05-18 14:54:24 -04:00
2020-07-07 17:11:58 -04:00
2020-05-18 14:54:24 -04:00
2021-06-18 14:36:24 +08:00
2021-06-18 14:36:24 +08:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2020-12-09 10:57:50 +01:00
2021-07-10 01:22:09 +01:00
2021-02-02 15:33:42 -05:00
2020-05-18 21:19:23 -04:00
2020-12-13 16:51:09 -07:00
2020-01-17 17:53:40 -05:00
2020-05-01 11:34:01 -04:00
2021-06-09 13:03:33 +02:00
2021-02-02 15:33:42 -05:00
2020-10-23 09:16:07 -04:00
2021-01-18 15:14:15 -05:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2021-03-02 15:53:37 -05:00
2021-04-22 14:09:45 -04:00
2020-05-18 14:54:24 -04:00
2020-05-22 15:22:35 +02:00
2020-05-18 14:54:24 -04:00
2020-07-29 10:37:11 -04:00
2021-06-23 08:45:03 -04:00
2021-07-06 14:07:36 -04:00
2020-01-24 11:19:52 -05:00
2020-08-25 08:01:16 +02:00
2021-07-23 18:53:46 -04:00
2020-07-10 14:10:43 -04:00
2020-05-18 14:54:24 -04:00
2020-12-13 16:51:09 -07:00
2021-02-21 06:08:00 +01:00
2020-05-18 21:19:23 -04:00
2020-12-13 16:51:09 -07:00
2020-05-18 14:54:24 -04:00
2020-05-18 21:19:23 -04:00
2021-05-24 14:21:30 -04:00
2021-05-24 14:21:30 -04:00
2021-07-23 18:53:46 -04:00
2020-01-17 13:27:30 -05:00
2020-08-14 15:18:27 -04:00