Linux MIPS Architecture development
 help / color / mirror / Atom feed
* arch/mips/au1000/common/irq.c
@ 2003-03-13 18:47 Jeff Baitis
  2003-03-13 18:50 ` arch/mips/au1000/common/irq.c Dan Malek
  2003-03-13 18:59 ` arch/mips/au1000/common/irq.c Pete Popov
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Baitis @ 2003-03-13 18:47 UTC (permalink / raw)
  To: Pete Popov; +Cc: linux-mips

Pete:

I've got a question concerning irq.c. In intc0_req0_irqdispatch() (linux_2_4
branch) on lines 545 thru 552, the code reads:

      for (i=0; i<32; i++) {
          if ((intc0_req0 & (1<<i))) {
              intc0_req0 &= ~(1<<i);
              do_IRQ(irq, regs);
              break;
          }
          irq++;
      }

My question is: why do we increment i and irq independently?
Why doesn't the code read:

      for (i=0; i<32; i++) {
          if ((intc0_req0 & (1<<i))) {
              intc0_req0 &= ~(1<<i);
              do_IRQ(i, regs);
              break;
          }
      }

Thanks for your help!

-Jeff





-- 
         Jeffrey Baitis - Associate Software Engineer

                    Evolution Robotics, Inc.
                     130 West Union Street
                       Pasadena CA 91103

 tel: 626.535.2776  |  fax: 626.535.2777  |  baitisj@evolution.com 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-13 22:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13 18:47 arch/mips/au1000/common/irq.c Jeff Baitis
2003-03-13 18:50 ` arch/mips/au1000/common/irq.c Dan Malek
2003-03-13 22:13   ` arch/mips/au1000/common/irq.c Jeff Baitis
2003-03-13 22:25     ` arch/mips/au1000/common/irq.c Jeff Baitis
2003-03-13 18:59 ` arch/mips/au1000/common/irq.c Pete Popov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox