Declare and set cputype and mmutype.

This commit is contained in:
thorpej 1997-02-02 08:36:39 +00:00
parent 109700d828
commit 95e30218f2
4 changed files with 32 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore2.c,v 1.60 1997/01/27 21:59:54 gwr Exp $ */
/* $NetBSD: locore2.c,v 1.61 1997/02/02 08:36:39 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -79,6 +79,9 @@ vm_offset_t avail_start, avail_end;
vm_offset_t hole_start, hole_size;
int cache_size;
/* m68k common code needs these */
int cputype, mmutype;
/*
* Now our own stuff.
*/
@ -554,6 +557,10 @@ _verify_hardware()
sunmon_abort();
}
/* Set cputype and mmutype for common m68k code. */
cputype = CPU_68020;
mmutype = MMU_SUN;
cpu_machine_id = machtype & SUN3_IMPL_MASK;
switch (cpu_machine_id) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: sun3_startup.c,v 1.60 1997/01/27 21:59:54 gwr Exp $ */
/* $NetBSD: sun3_startup.c,v 1.61 1997/02/02 08:36:39 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -79,6 +79,9 @@ vm_offset_t avail_start, avail_end;
vm_offset_t hole_start, hole_size;
int cache_size;
/* m68k common code needs these */
int cputype, mmutype;
/*
* Now our own stuff.
*/
@ -554,6 +557,10 @@ _verify_hardware()
sunmon_abort();
}
/* Set cputype and mmutype for common m68k code. */
cputype = CPU_68020;
mmutype = MMU_SUN;
cpu_machine_id = machtype & SUN3_IMPL_MASK;
switch (cpu_machine_id) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore2.c,v 1.7 1997/01/27 22:22:51 gwr Exp $ */
/* $NetBSD: locore2.c,v 1.8 1997/02/02 08:38:00 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -65,6 +65,9 @@ extern char kernel_text[];
extern char etext[], edata[], end[];
char *esym; /* DDB */
/* m68k common code needs these */
int cputype, mmutype;
/*
* Now our own stuff.
*/
@ -234,6 +237,10 @@ _verify_hardware()
sunmon_abort();
}
/* Set cputype and mmutype for common m68k code. */
cputype = CPU_68030;
mmutype = MMU_68030;
cpu_machine_id = machtype & SUN3X_IMPL_MASK;
switch (cpu_machine_id) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: _startup.c,v 1.7 1997/01/27 22:22:51 gwr Exp $ */
/* $NetBSD: _startup.c,v 1.8 1997/02/02 08:38:00 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -65,6 +65,9 @@ extern char kernel_text[];
extern char etext[], edata[], end[];
char *esym; /* DDB */
/* m68k common code needs these */
int cputype, mmutype;
/*
* Now our own stuff.
*/
@ -234,6 +237,10 @@ _verify_hardware()
sunmon_abort();
}
/* Set cputype and mmutype for common m68k code. */
cputype = CPU_68030;
mmutype = MMU_68030;
cpu_machine_id = machtype & SUN3X_IMPL_MASK;
switch (cpu_machine_id) {