Searched hist:"71 f7a363fe9d5aa6466ffd4b663cf52d9033deaa" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/lib/cpus/aarch32/ |
| H A D | cpu_helpers.S | 71f7a363fe9d5aa6466ffd4b663cf52d9033deaa Mon Aug 18 14:38:30 UTC 2025 Boyan Karatotev <boyan.karatotev@arm.com> fix(aarch32): make get_cpu_ops_ptr() PCS compliant
The get_cpu_ops_ptr() function gets called from C (mainly in errata reporting) but it is not PCS compliant - it clobbers r4 and r5. This doesn't usually cause any problems, but if the stars align it blows up.
Convert the heart of the function to a non-PCS compliant macro that can be invoked in the early entrypoint code and change the get_cpu_ops_ptr() to a PCS compliant wrapper for calling into C. Additionally, the resultant inlining in the entrypoint will lead to a tiny performance bump due to the one fewer jump to an uncached memory location.
Change-Id: I7f3b50e56a1288d2a8136a7b8c01544bab19c57b Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
|