Searched hist:"94 f536fc4fd70fc9f3c7442d09698a9b1c82f41b" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/arch/arm/mach-keystone/ |
| H A D | mon.c | 94f536fc4fd70fc9f3c7442d09698a9b1c82f41b Mon Jul 17 18:02:02 UTC 2017 Srinivas, Madan <madans@ti.com> arm: mach-keystone: Fixes issue with return values in inline assembly
The inline assembly functions in mon.c assume that the caller will check for the return value in r0 according to regular ARM calling conventions.
However, this assumption breaks down if the compiler inlines the functions. The caller is then under no obligation to use r0 for the result.
To fix this disconnect, we must explicitly move the return value from the smc/bl call to the variable that the function returns.
Signed-off-by: Madan Srinivas <madans@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
|