[U-Boot] [PATCH v3 3/9] tegra20: remove inline assembly for u32 cast
Allen Martin
amartin at nvidia.com
Wed Aug 15 23:38:55 CEST 2012
This inline assembly just converts a function address to a u32.
Replace it with equivalent C code since the assembly was not thumb
compatible.
Signed-off-by: Allen Martin <amartin at nvidia.com>
---
arch/arm/cpu/tegra20-common/warmboot_avp.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/arch/arm/cpu/tegra20-common/warmboot_avp.c b/arch/arm/cpu/tegra20-common/warmboot_avp.c
index cd01908..0a7f09f 100644
--- a/arch/arm/cpu/tegra20-common/warmboot_avp.c
+++ b/arch/arm/cpu/tegra20-common/warmboot_avp.c
@@ -51,14 +51,7 @@ void wb_start(void)
/* enable JTAG & TBE */
writel(CONFIG_CTL_TBE | CONFIG_CTL_JTAG, &pmt->pmt_cfg_ctl);
- /* Are we running where we're supposed to be? */
- asm volatile (
- "adr %0, wb_start;" /* reg: wb_start address */
- : "=r"(reg) /* output */
- /* no input, no clobber list */
- );
-
- if (reg != AP20_WB_RUN_ADDRESS)
+ if ((u32)wb_start != AP20_WB_RUN_ADDRESS)
goto do_reset;
/* Are we running with AVP? */
--
1.7.9.5
More information about the U-Boot
mailing list