linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][PPC32] Fix an Off-By-One Error in arch/ppc/syslib/ipic.c
@ 2005-05-21  0:40 Randy Vinson
  0 siblings, 0 replies; only message in thread
From: Randy Vinson @ 2005-05-21  0:40 UTC (permalink / raw)
  To: linuxppc-embedded

Fix an off-by-one error in ipic_init.

There is an off-by-one error in the IPIC code that configures the
external interrupts (Edge or Level Sensitive).

Signed-off-by Randy Vinson <rvinson@mvista.com>

---
commit 0c92b569e09b94a1580cc5bae6efbdd749fec28a
tree 9c1e83adcec1bee0a700888546385444ef5f4000
parent 66e60f92518268f4d2a702a1c4ffbe1caacd6290
author Randy Vinson <rvinson@linuxbox.(none)> Fri, 20 May 2005 15:58:02 -0700
committer Randy Vinson <rvinson@linuxbox.(none)> Fri, 20 May 2005 15:58:02 -0700

arch/ppc/syslib/ipic.c |    2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: arch/ppc/syslib/ipic.c
===================================================================
--- 889a1e2919ac50253be8136a1b0855fde27fcb36/arch/ppc/syslib/ipic.c  (mode:100644)
+++ 9c1e83adcec1bee0a700888546385444ef5f4000/arch/ppc/syslib/ipic.c  (mode:100644)
@@ -479,7 +479,7 @@
    temp = 0;
    for (i = 0 ; i < senses_count ; i++) {
        if ((senses[i] & IRQ_SENSE_MASK) == IRQ_SENSE_EDGE) {
-            temp |= 1 << (16 - i);
+            temp |= 1 << (15 - i);
            if (i != 0)
                irq_desc[i + irq_offset + MPC83xx_IRQ_EXT1 - 1].status = 0;
            else

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-21  1:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-21  0:40 [PATCH][PPC32] Fix an Off-By-One Error in arch/ppc/syslib/ipic.c Randy Vinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).