revision 421:e51bf0aedd90
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 421:e51bf0aedd90 |
parent | 420:e6f43dec3cf0 |
child | 422:61a0598e07ff |
author | nkeynes |
date | Sat Oct 06 08:52:08 2007 +0000 (16 years ago) |
Fix undefined statement and other warning
src/sh4/intc.c | view | annotate | diff | log |
1.1 --- a/src/sh4/intc.c Sat Oct 06 08:48:47 2007 +00001.2 +++ b/src/sh4/intc.c Sat Oct 06 08:52:08 2007 +00001.3 @@ -1,5 +1,5 @@1.4 /**1.5 - * $Id: intc.c,v 1.7 2007-01-06 04:06:36 nkeynes Exp $1.6 + * $Id: intc.c,v 1.8 2007-10-06 08:52:08 nkeynes Exp $1.7 *1.8 * SH4 onboard interrupt controller (INTC) implementation1.9 *1.10 @@ -38,7 +38,7 @@1.11 { "RTC_ATI",0x480 },{ "RTC_PRI",0x4A0 },{ "RTC_CUI",0x4C0 },1.12 { "SCI_ERI",0x4E0 },{ "SCI_RXI",0x500 },{ "SCI_TXI",0x520 },1.13 { "SCI_TEI",0x540 },1.14 - { "SCIF_ERI",0x700 },{ "SCIF_RXI",0x720, 0 },{ "SCIF_BRI",0x740 },1.15 + { "SCIF_ERI",0x700 },{ "SCIF_RXI",0x720 },{ "SCIF_BRI",0x740 },1.16 { "SCIF_TXI",0x760 },1.17 { "WDT_ITI",0x560 },{ "RCMI",0x580 }, { "ROVI",0x5A0 } };1.19 @@ -165,7 +165,8 @@1.20 if( intc_state.pending[i] == which ) {1.21 /* Shift array contents down */1.22 while( i < intc_state.num_pending-1 ) {1.23 - intc_state.pending[i] = intc_state.pending[++i];1.24 + intc_state.pending[i] = intc_state.pending[i+1];1.25 + i++;1.26 }1.27 intc_state.num_pending--;1.28 intc_mask_changed();
.