/[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 22 by dpavlin, Mon Oct 8 16:19:37 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.5 2006/02/18 17:55:25 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  */
# Line 112  MACHINE_DEFAULT_CPU(algor) Line 125  MACHINE_DEFAULT_CPU(algor)
125    
126  MACHINE_REGISTER(algor)  MACHINE_REGISTER(algor)
127  {  {
128          MR_DEFAULT(algor, "Algor evaluation board", ARCH_MIPS, MACHINE_ALGOR,          MR_DEFAULT(algor, "Algor evaluation board", ARCH_MIPS, MACHINE_ALGOR);
129              1, 2);  
130          me->aliases[0] = "algor";          machine_entry_add_alias(me, "algor");
131          me->subtype[0] = machine_entry_subtype_new("P4032",  
132              MACHINE_ALGOR_P4032, 1);          machine_entry_add_subtype(me, "P4032", MACHINE_ALGOR_P4032,
133          me->subtype[0]->aliases[0] = "p4032";              "p4032", NULL);
134          me->subtype[1] = machine_entry_subtype_new("P5064",  
135              MACHINE_ALGOR_P5064, 1);          machine_entry_add_subtype(me, "P5064", MACHINE_ALGOR_P5064,
136          me->subtype[1]->aliases[0] = "p5064";              "p5064", NULL);
         machine_entry_add(me, ARCH_MIPS);  
137  }  }
138    

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

  ViewVC Help
Powered by ViewVC 1.1.26