- _irq_dispatch(): IP masked by IM in software

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@493 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-10-03 16:45:29 +00:00
parent f3d4b8bdb3
commit f706de00bb
+3 -2
View File
@@ -12,9 +12,10 @@ static fp_irq_t g_irq_handler[MAX_NUM_IRQ] = {NULL};
int _irq_dispatch(struct xcptcontext * xcp) int _irq_dispatch(struct xcptcontext * xcp)
{ {
int i, ip; int i, ip, cause;
ip = (xcp->cr >> 8) & 0xFF; cause = xcp->cr & xcp->sr;
ip = (cause >> 8) & 0xFF;
for (i=0; i < MAX_NUM_IRQ; i++) for (i=0; i < MAX_NUM_IRQ; i++)
{ {