[PATCH] Updating legacy code in arm nds

Sebastian Huber sebastian.huber at embedded-brains.de
Sun Aug 25 11:44:31 UTC 2013


On 2013-08-23 20:40, Vipul Nayyar wrote:
> When earlier you converted all ARM bsps, what was the problem you faced with nds ? Something related with libnds ?

I think the problem was that this variant didn't use the standard RTEMS 
exception support, but this is three years ago, so I may be wrong.

>
> I'm following the pattern of work done in gba for nds, since both seem to be similar. So, gba installs the dispatcher with the help of _ARMV4_Exception_interrupt which in turn branches to bsp_interrupt_dispatch while handling an interrupt. Since bsp_interrupt_dispatch being a C function. how is the assembler able to reference it's address ?

The assembler is not responsible to resolve the references.  This is the 
job of the linker.  If you get an undefined reference, then the linker 
doesn't see the definition.

> On the other hand, addressing the same function from interruptdispatcher.s in libnds gives me an undefined reference error. Should I transfer the bsp_interrupt_dispatch installer to start.s or something else can be done to retain the code in the same file. ?

You probably have a problem with the linker command line here.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list