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> |
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 |
|
|
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 */ |