>From: linux-omap-owner@xxxxxxxxxxxxxxx [mailto:linux-omap- >owner@xxxxxxxxxxxxxxx] On Behalf Of Pramod Gurav > [snip] >diff --git a/arch/arm/mach-omap2/sram34xx.S b/arch/arm/mach-omap2/sram34xx.S >index de99ba2..00da20a 100644 >--- a/arch/arm/mach-omap2/sram34xx.S >+++ b/arch/arm/mach-omap2/sram34xx.S >@@ -313,3 +313,14 @@ core_m2_mask_val: > ENTRY(omap3_sram_configure_core_dpll_sz) > .word . - omap3_sram_configure_core_dpll > >+ENTRY(__sram_wait_delay) >+ stmfd sp!, {lr} @ store return addr to stack >+ >+ loop1: >+ subs r0, r0, #1 @ loop till counter = 0 >+ bne loop1 >+ >+ ldmfd sp!, {pc} @ restore return address >+ If I remember well from my old ARM ASM days, you can even preserve the stack and one instruction in that case using the "mov pc, lr" ENTRY(__sram_wait_delay) subs r0, r0, #1 @ loop till counter = 0 bne __sram_wait_delay mov pc, lr Regards, Benoit Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html