Subject: Re: LKM on evbarm
To: Matt Thomas <matt@3am-software.com>
From: Richard Earnshaw <rearnsha@arm.com>
List: port-arm
Date: 07/01/2003 17:47:59
> What's the proper sequence to do a trampoline?  I think this might be
> it but my arm's a bit rusty.
> 
> __wrap_foo:
>          ldr pc, [pc, #-4]
>          .word __real_foo

Yep, that would work.

__wrap_foo:
	ldr	pc, . + 4
	.word	__real_foo

Might be a bit cleaner (since it hides the pipeline compensation), but 
there's no difference in the code generated.

R.