/[gxemul]/trunk/src/devices/dev_gt.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_gt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by dpavlin, Mon Oct 8 16:18:38 2007 UTC revision 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_gt.c,v 1.26 2005/08/05 07:50:37 debug Exp $   *  $Id: dev_gt.c,v 1.27 2005/09/21 19:10:34 debug Exp $
29   *     *  
30   *  Galileo Technology GT-64xxx PCI controller.   *  Galileo Technology GT-64xxx PCI controller.
31   *   *
# Line 134  cpu_interrupt_ack(cpu, d->irqnr); Line 134  cpu_interrupt_ack(cpu, d->irqnr);
134                   *  Ugly hack, which works for at least evbmips/Malta:                   *  Ugly hack, which works for at least evbmips/Malta:
135                   */                   */
136                  asserted =                  asserted =
137                      (cpu->machine->md_int.isa_pic_data.pic1->irr &                      (cpu->machine->isa_pic_data.pic1->irr &
138                      ~cpu->machine->md_int.isa_pic_data.pic1->ier) |                      ~cpu->machine->isa_pic_data.pic1->ier) |
139                      ((cpu->machine->md_int.isa_pic_data.pic2->irr &                      ((cpu->machine->isa_pic_data.pic2->irr &
140                       ~cpu->machine->md_int.isa_pic_data.pic2->ier) << 8);                       ~cpu->machine->isa_pic_data.pic2->ier) << 8);
141                  odata = 7;      /*  "Spurious interrupt" defaults to 7.  */                  odata = 7;      /*  "Spurious interrupt" defaults to 7.  */
142                  for (i=0; i<16; i++)                  for (i=0; i<16; i++)
143                          if ((asserted >> i) & 1) {                          if ((asserted >> i) & 1) {

Legend:
Removed from v.12  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26