<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><span>Hello,</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">I think getting general guidance on ARM will be a great help too. I'm currently working on arm nds. If it's possible, please do try to answer the following questions.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color:
 transparent; font-style: normal;">When earlier you converted all ARM bsps, what was the problem you faced with nds ? Something related with libnds ?</div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">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 ? 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. ?</div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Joel,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="background-color: transparent;"><font size="2">An update, The current work for converting these multiple bsps to generic interrupt support is turning out to be a tad difficult as it requires deep working knowledge of chipset over varied terrain. This might take some time, expanding to more than left GSOC period. But nonetheless, I'll work on it in parallel. I currently
 feel a need to resume the work for bsp specific file documentation, that we started with initially. As Cynthia Rempel suggested, I'll submit the details of the ideal bsp(lpc24xx) with which function is defined in which file & the list of headers, which was initially compiled earlier over this weekend. I hope to see your active support & guidance for this part. :-) </font></div><div style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Regards</div><div style="font-family: arial, helvetica, clean, sans-serif; font-size: 13px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="background-color:transparent;line-height:1.22;">Vipul
 Nayyar </span></div><div style="font-family: arial, helvetica, clean, sans-serif; font-size: 12.727272033691406px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Sebastian Huber <sebastian.huber@embedded-brains.de><br> <b><span style="font-weight: bold;">To:</span></b> Vipul Nayyar <nayyar_vipul@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Joel Sherrill <joel.sherrill@oarcorp.com>; "rtems-devel@rtems.org" <rtems-devel@rtems.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, 19 August 2013 5:21
 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PATCH] Updating legacy code in arm nds<br> </font> </div> <div class="y_msg_container"><br>Hello Vipul,<br><br>I tried to convert all ARM BSPs to the generic IRQ support some in 2010.  The <br>not converted BSPs had some special stuff and I had no time to deal with this. <br>  I also don't have the time for this now.  I can help you with general ARM <br>questions, but I don't look into the details of a BSP/chip.<br><br>On 2013-08-18 16:42, Vipul Nayyar wrote:<br>><br>> Hello,<br>><br>> The recent patch for arm nds is not entirely error-free. Need some guidance to<br>> correct the work so far.<br>><br>> In order to use the generic interrupt support, I've modified the existing<br>> assembly in libnds & I'm calling bsp_interrupt_dispatch from assembly after<br>> saving previous context. I'm experiencing an error of undefined reference
 to<br>> `bsp_interrupt_dispatch' in assembly. I'm unable to correct it.<br>><br>> Is the above approach right ? If not, then without using assembly how can I<br>> save the previous values of registers during context switch in C ?<br>><br>> Regards<br>> Vipul Nayyar<br>><br><br><br>-- <br>Sebastian Huber, embedded brains GmbH<br><br>Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>Phone   : +49 89 189 47 41-16<br>Fax     : +49 89 189 47 41-09<br>E-Mail  : <a ymailto="mailto:sebastian.huber@embedded-brains.de" href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a><br>PGP     : Public key available on request.<br><br>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br><br><br></div> </div> </div>  </div></body></html>