/[gxemul]/trunk/src/machines/machine_algor.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/machines/machine_algor.c

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

revision 29 by dpavlin, Mon Oct 8 16:20:10 2007 UTC revision 30 by dpavlin, Mon Oct 8 16:20:40 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: machine_algor.c,v 1.6 2006/06/24 10:19:19 debug Exp $   *  $Id: machine_algor.c,v 1.8 2006/08/14 18:03:12 debug Exp $
29   */   */
30    
31  #include <stdio.h>  #include <stdio.h>
# Line 56  MACHINE_SETUP(algor) Line 56  MACHINE_SETUP(algor)
56                  exit(1);                  exit(1);
57          }          }
58    
59            /*
60             *  Algor CPU interrupts:
61             *
62             *  7 = CPU count/compare
63             *  4 = Local
64             *  3 = PCI
65             *  2 = ISA
66             */
67    
68          machine->md_int.v3_data = dev_v3_init(machine, machine->memory);          machine->md_int.v3_data = dev_v3_init(machine, machine->memory);
69          machine->md_interrupt = isa8_interrupt;          machine->md_interrupt = isa8_interrupt;
70          machine->isa_pic_data.native_irq = 6;          machine->isa_pic_data.native_irq = 2;           /*  Primary: ISA  */
71          /*  Hm. ISA interrupts at 6, but "local" at 2!  */          machine->isa_pic_data.secondary_mask1 = 0x18;
72            machine->isa_pic_data.native_secondary_irq = 4; /*  Secondary: Local  */
73    
74          device_add(machine, "algor addr=0x1ff00000");          device_add(machine, "algor addr=0x1ff00000");
75    
# Line 71  MACHINE_SETUP(algor) Line 81  MACHINE_SETUP(algor)
81          if (!machine->prom_emulation)          if (!machine->prom_emulation)
82                  return;                  return;
83    
84            /*  Magic "reboot" instruction at 0xbfc00000:  */
85            store_32bit_word(cpu, 0xffffffff9fc00000ULL, 0x00c0de0d);
86    
87          /*  NetBSD/algor wants these:  */          /*  NetBSD/algor wants these:  */
88    
89          /*  a0 = argc  */          /*  a0 = argc  */

Legend:
Removed from v.29  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26