| #
54df46b5 |
| 12-Jul-2023 |
Etienne Carriere <etienne.carriere@foss.st.com> |
core: arm: use cpu_spin_lock_xsave() in generic timer implementation
Change generic timer driver for Arm 64bit architecture to use helper functions cpu_spin_lock_xsave() and cpu_spin_unlock_xrestore
core: arm: use cpu_spin_lock_xsave() in generic timer implementation
Change generic timer driver for Arm 64bit architecture to use helper functions cpu_spin_lock_xsave() and cpu_spin_unlock_xrestore() instead of calling thread_mask_exceptions()/cpu_spin_lock() pair and thread_set_exceptions()/cpu_spin_unlock() pair. This makes the implementation more consistent with the rest of the source tree.
No functional change.
Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| #
439c5ecb |
| 31-Jan-2024 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm: fix integer overflow in generic_timer_{handler,start}()
In generic_timer_handler() and generic_timer_start(), read_cntfrq() can return a pretty large 32-bit number, multiplying that with
core: arm: fix integer overflow in generic_timer_{handler,start}()
In generic_timer_handler() and generic_timer_start(), read_cntfrq() can return a pretty large 32-bit number, multiplying that with a delay of 1000 ms can overflow. Fix that by casting the result from read_cntfrq() to a uint64_t to avoid overflow during the calculation.
Fixes: ba6b29591828 ("core: arm64: Add Secure EL1 physical timer framework") Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
show more ...
|
| #
ba6b2959 |
| 07-Dec-2018 |
Sumit Garg <sumit.garg@linaro.org> |
core: arm64: Add Secure EL1 physical timer framework
As an implementation of generic timer, arm64 platforms provides secure EL1 physical timer. So enable corresponding framework. For more informatio
core: arm64: Add Secure EL1 physical timer framework
As an implementation of generic timer, arm64 platforms provides secure EL1 physical timer. So enable corresponding framework. For more information refer to section: D6.1.5 Timers - ARMv8-A RM.
Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Acked-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|