Support PC-98 machine.
This commit is contained in:
parent
8d41a9efa3
commit
c090df3958
@ -159,6 +159,7 @@ char *machinename;
|
||||
#define MACHINE_PMAX 6
|
||||
#define MACHINE_LUNA68K 7
|
||||
#define MACHINE_NEWS3400 8
|
||||
#define MACHINE_PC98 9
|
||||
|
||||
/*
|
||||
* For each machine, a set of CPU's may be specified as supported.
|
||||
|
@ -174,6 +174,9 @@ Config_spec:
|
||||
} else if (!strcmp($2, "i386")) {
|
||||
machine = MACHINE_I386;
|
||||
machinename = "i386";
|
||||
} else if (!strcmp($2, "pc98")) {
|
||||
machine = MACHINE_PC98;
|
||||
machinename = "pc98";
|
||||
} else if (!strcmp($2, "mips")) {
|
||||
machine = MACHINE_MIPS;
|
||||
machinename = "mips";
|
||||
@ -960,6 +963,7 @@ check_nexus(dev, num)
|
||||
break;
|
||||
|
||||
case MACHINE_I386:
|
||||
case MACHINE_PC98:
|
||||
if (!eq(dev->d_name, "isa"))
|
||||
yyerror("only isa's should be connected to the nexus");
|
||||
break;
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: main.c,v 1.22 1998/03/16 11:19:10 eivind Exp $";
|
||||
"$Id: main.c,v 1.23 1998/04/23 16:37:06 bde Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -165,6 +165,7 @@ main(argc, argv)
|
||||
break;
|
||||
|
||||
case MACHINE_I386:
|
||||
case MACHINE_PC98:
|
||||
i386_ioconf(); /* Print ioconf.c */
|
||||
vector(); /* Create vector.s */
|
||||
break;
|
||||
|
@ -36,7 +36,7 @@
|
||||
static char sccsid[] = "@(#)mkioconf.c 8.2 (Berkeley) 1/21/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: mkioconf.c,v 1.33 1997/09/21 22:12:50 gibbs Exp $";
|
||||
"$Id: mkioconf.c,v 1.34 1998/04/02 04:25:41 eivind Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <err.h>
|
||||
@ -654,7 +654,10 @@ i386_ioconf()
|
||||
fprintf(fp, " */\n");
|
||||
fprintf(fp, "\n");
|
||||
fprintf(fp, "#include <i386/isa/icu.h>\n");
|
||||
fprintf(fp, "#include <i386/isa/isa.h>\n");
|
||||
if (machine == MACHINE_I386)
|
||||
fprintf(fp, "#include <i386/isa/isa.h>\n");
|
||||
else
|
||||
fprintf(fp, "#include <pc98/pc98/pc98.h>\n");
|
||||
fprintf(fp1, "\n");
|
||||
fprintf(fp1, "#include <i386/isa/isa_device.h>\n");
|
||||
fprintf(fp1, "\n");
|
||||
@ -676,7 +679,7 @@ i386_ioconf()
|
||||
seen_wdc++;
|
||||
if (eq(dp->d_name, "fdc"))
|
||||
seen_fdc++;
|
||||
if (dp->d_irq == 2) {
|
||||
if ((dp->d_irq == 2) && (machine == MACHINE_I386)) {
|
||||
fprintf(stderr,
|
||||
"remapped irq 2 to irq 9, please update your config file\n");
|
||||
dp->d_irq = 9;
|
||||
|
@ -36,7 +36,7 @@
|
||||
static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: mkmakefile.c,v 1.27 1998/02/19 00:51:49 eivind Exp $";
|
||||
"$Id: mkmakefile.c,v 1.28 1998/03/16 11:15:45 eivind Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -149,6 +149,7 @@ static struct users {
|
||||
{ 8, 2, 512 }, /* MACHINE_PMAX */
|
||||
{ 8, 2, 512 }, /* MACHINE_LUNA68K */
|
||||
{ 8, 2, 512 }, /* MACHINE_NEWS3400 */
|
||||
{ 8, 2, 512 }, /* MACHINE_PC98 */
|
||||
};
|
||||
#define NUSERS (sizeof (users) / sizeof (users[0]))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user