Searched hist:"7339 fb11aea8387d1ceb260323a2c87faa48fdcd" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/arm/lib/ |
H A D | delay-loop.S | diff 7339fb11aea8387d1ceb260323a2c87faa48fdcd Tue Apr 23 09:50:38 CEST 2024 Linus Walleij <linus.walleij@linaro.org> ARM: 9390/2: lib: Annotate loop delay instructions for CFI
When we annotate the loop delay code with SYM_TYPED_FUNC_START() a function prototype signature will be emitted into the object file above each site called from C, and the delay loop code is using "fallthroughs" from the different assembly callbacks. This will not work as the execution flow will run into the prototype signatures.
Rewrite the code to use explicit branches to the other code segments and annotate the code using SYM_TYPED_FUNC_START().
Tested on the ARM Versatile which uses the calibrated loop delay.
Tested-by: Kees Cook <keescook@chromium.org> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
|