This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
RLTK8139 interrupt priority patch
- From: Hajime Ishitani <pigmon at mail dot snd dot co dot jp>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 25 Nov 2005 13:55:10 +0900
- Subject: RLTK8139 interrupt priority patch
Hello
When I used an IRL level in SH4, interrupt is not called for ever if a level was zero.
This patch can change priority sequence by private variable.
An initial value is set in 0 with a compiler.
When a change is necessary, a developer initializes this variable.
Index: ecos/packages/devs/eth/rltk/8139/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/rltk/8139/current/ChangeLog,v
retrieving revision 1.5
diff -u -r1.5 ChangeLog
--- ecos/packages/devs/eth/rltk/8139/current/ChangeLog 4 Mar 2005 19:51:12 -0000 1.5
+++ ecos/packages/devs/eth/rltk/8139/current/ChangeLog 25 Nov 2005 04:33:26 -0000
@@ -1,3 +1,8 @@
+2005-11-25 Hajime Ishitani <pigmon@mail.snd.co.jp>
+
+ * src/if_8139.h:
+ * src/if_8139.c: Added a priority level field
+
2005-03-03 Bob Koninckx <bob.koninckx@fmtc.be>
* src/if_8139.c: fixed bug that prevented rltk8139_find to find
Index: ecos/packages/devs/eth/rltk/8139/current/src/if_8139.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/rltk/8139/current/src/if_8139.c,v
retrieving revision 1.5
diff -u -r1.5 if_8139.c
--- ecos/packages/devs/eth/rltk/8139/current/src/if_8139.c 4 Mar 2005 19:51:12 -0000 1.5
+++ ecos/packages/devs/eth/rltk/8139/current/src/if_8139.c 25 Nov 2005 04:33:26 -0000
@@ -346,7 +346,8 @@
* Note that we use the generic eth_drv_dsr routine instead of
* our own.
*/
- cyg_drv_interrupt_create(rltk8139_info->vector, 0,
+ cyg_drv_interrupt_create(rltk8139_info->vector,
+ rltk8139_info->isr_priority,
(CYG_ADDRWORD)sc,
rltk8139_isr,
eth_drv_dsr,
Index: ecos/packages/devs/eth/rltk/8139/current/src/if_8139.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/rltk/8139/current/src/if_8139.h,v
retrieving revision 1.1
diff -u -r1.1 if_8139.h
--- ecos/packages/devs/eth/rltk/8139/current/src/if_8139.h 13 Nov 2003 13:39:08 -0000 1.1
+++ ecos/packages/devs/eth/rltk/8139/current/src/if_8139.h 25 Nov 2005 04:33:26 -0000
@@ -149,6 +149,10 @@
cyg_vector_t vector;
cyg_handle_t interrupt_handle;
cyg_interrupt interrupt;
+
+ /* device ISR priority */
+ cyg_priority_t isr_priority;
+
} Rltk8139_t;