Skip to content

Commit e3bb031

Browse files
nonakapsyuu1228
authored andcommitted
cp14PrvRaiseLowerInts(): fix raise interrupt condition.
1 parent 8b92150 commit e3bb031

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cp14.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
static void cp14PrvRaiseLowerInts(ArmCP14* cp14){
2525

26-
pxa255icInt(cp14->ic, PXA255_I_PMU, (cp14->PMNC & (PMNC_INTEN_PMN0|PMNC_FLAG_PMN0)) != 0);
27-
pxa255icInt(cp14->ic, PXA255_I_PMU, (cp14->PMNC & (PMNC_INTEN_PMN1|PMNC_FLAG_PMN1)) != 0);
28-
pxa255icInt(cp14->ic, PXA255_I_PMU, (cp14->PMNC & (PMNC_INTEN_CCNT|PMNC_FLAG_CCNT)) != 0);
26+
pxa255icInt(cp14->ic, PXA255_I_PMU, (cp14->PMNC & (PMNC_INTEN_PMN0|PMNC_FLAG_PMN0)) == (PMNC_INTEN_PMN0|PMNC_FLAG_PMN0));
27+
pxa255icInt(cp14->ic, PXA255_I_PMU, (cp14->PMNC & (PMNC_INTEN_PMN1|PMNC_FLAG_PMN1)) == (PMNC_INTEN_PMN1|PMNC_FLAG_PMN1));
28+
pxa255icInt(cp14->ic, PXA255_I_PMU, (cp14->PMNC & (PMNC_INTEN_CCNT|PMNC_FLAG_CCNT)) == (PMNC_INTEN_CCNT|PMNC_FLAG_CCNT));
2929
}
3030

3131
static Boolean cp14prvCoprocRegXferFunc(struct ArmCpu* cpu, void* userData, Boolean two, Boolean read, UInt8 op1, UInt8 Rx, UInt8 CRn, UInt8 CRm, UInt8 op2){

0 commit comments

Comments
 (0)