On Tue, 25 Apr 2000, Zach Welch wrote:
> Howdy,
>
> I'm working to port Linux to our SA-1100 platform and having been delving
I hope you didn't start from scratch. Generic SA1100 support is already
available with extra patches.
> into the arch/arm/kernel source pretty heavily. In my pursuit, I ran across
> the 'adr' opcode several times. Being unfamiliar with the opcode, I looked
> through the 'info' page only to discover the following message:
The adr opcode is in fact a macro that loads the address of a symbol by
adding a distance value to the program counter.
ldr r0, foo @ loads the word labeled 'foo'
adr r0, foo @ loads the address where 'foo' actually is
I think it expands into:
add r0, pc, #(foo - . - 8)
Nicolas
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++