<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Rectified(hopefully), the same mistakes in arm rtl22xx.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;">Regards</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;"><span style="background-color:transparent;line-height:1.22;">Vipul Nayyar </span></div><div style="color: rgb(0, 0, 0); font-size: 12.727272033691406px; font-family: arial, helvetica, clean, sans-serif; background-color: transparent; font-style: normal;"><br></div><div><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> Vipul Nayyar <nayyar_vipul@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> rtems-devel@rtems.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, 13 July 2013 5:20 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [PATCH] Updated legacy code in arm edb7312<br> </font> </div> <div class="y_msg_container"><br>---<br> c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c | 3 +--<br> c/src/lib/libbsp/arm/edb7312/network/network.c | 12 +++++-------<br> 2 files changed, 6 insertions(+), 9 deletions(-)<br><br>diff --git a/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c b/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c<br>index
af0448ff7..761387f 100644<br>--- a/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c<br>+++ b/c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c<br>@@ -18,8 +18,7 @@<br> #define CLOCK_DRIVER_USE_FAST_IDLE<br> #endif<br> <br>-void Clock_isr(rtems_irq_hdl_param arg);<br>-uint32_t clock_driver_get_nanoseconds_since_last_tick(void);<br>+void Clock_isr(void * arg);<br> <br> #define Clock_driver_support_at_tick() \<br> do { \<br>diff --git a/c/src/lib/libbsp/arm/edb7312/network/network.c b/c/src/lib/libbsp/arm/edb7312/network/network.c<br>index ce139ec..773b4c4 100644<br>--- a/c/src/lib/libbsp/arm/edb7312/network/network.c<br>+++ b/c/src/lib/libbsp/arm/edb7312/network/network.c<br>@@ -7,14 +7,13 @@<br> #define CS8900_BASE 0x20000300<br>
unsigned int bsp_cs8900_io_base = 0;<br> unsigned int bsp_cs8900_memory_base = 0;<br>-cs8900_device *g_cs;<br>-void cs8900_isr(rtems_irq_hdl_param unused);<br>+void cs8900_isr(void *);<br> <br> char g_enetbuf[1520];<br> <br>-void cs8900_isr(rtems_irq_hdl_param unused)<br>+void cs8900_isr(void *arg)<br> {<br>- cs8900_interrupt(BSP_EINT3, g_cs);<br>+ cs8900_interrupt(BSP_EINT3, arg);<br> }<br> <br> /* cs8900_io_set_reg - set one of the I/O addressed registers */<br>@@ -64,14 +63,13 @@ unsigned short cs8900_mem_get_reg (cs8900_device *cs, unsigned long reg)<br> void cs8900_attach_interrupt (cs8900_device *cs)<br> {<br> rtems_status_code status = RTEMS_SUCCESSFUL;<br>- g_cs = cs;<br> <br> status = rtems_interrupt_handler_install(<br> BSP_EINT3,<br> "Network",<br> RTEMS_INTERRUPT_UNIQUE,<br>
cs8900_isr,<br>- NULL<br>+ cs<br> );<br> assert(status == RTEMS_SUCCESSFUL);<br> }<br>@@ -83,7 +81,7 @@ void cs8900_detach_interrupt (cs8900_device *cs)<br> status = rtems_interrupt_handler_remove(<br> BSP_EINT3,<br> cs8900_isr,<br>- NULL<br>+ cs<br> );<br> assert(status == RTEMS_SUCCESSFUL);<br> }<br>-- <br>1.7.11.7<br><br>_______________________________________________<br>rtems-devel mailing list<br><a ymailto="mailto:rtems-devel@rtems.org" href="mailto:rtems-devel@rtems.org">rtems-devel@rtems.org</a><br><a href="http://www.rtems.org/mailman/listinfo/rtems-devel" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-devel</a><br><br><br></div> </div> </div> </div></body></html>