Subject: Re: Resolved(?): no support for DECstation 3100 in 3.1 kernel?
To: Dennis Grevenstein <dennis.grevenstein@gmail.com>
From: Simon Burge <simonb@NetBSD.org>
List: port-pmax
Date: 10/16/2007 22:19:13
Hi Dennis,

"Dennis Grevenstein" wrote:

> --- orig_netbsd/src/sys/arch/mips/mips/mips_machdep.c   2005-09-12
> 00:10:13.000000000 +0200
> +++ mod_pmax/src/sys/arch/mips/mips/mips_machdep.c      2007-10-01
> 01:40:31.000000000 +0200
> @@ -251,6 +251,8 @@
>  static const struct pridtab cputab[] = {
>         { 0, MIPS_R2000, -1, -1,                CPU_ARCH_MIPS1, 64,
>           CPU_MIPS_NO_LLSC,                     "MIPS R2000 CPU"        },
> +        { 0, MIPS_R3000, MIPS_REV_R2PMAX, -1,    CPU_ARCH_MIPS1, 64,
> +          CPU_MIPS_NO_LLSC,                     "MIPS R2000A CPU"        },
>         { 0, MIPS_R3000, MIPS_REV_R3000, -1,    CPU_ARCH_MIPS1, 64,
>           CPU_MIPS_NO_LLSC,                     "MIPS R3000 CPU"        },
>         { 0, MIPS_R3000, MIPS_REV_R3000A, -1,   CPU_ARCH_MIPS1, 64,
> 
> --- orig_netbsd/src/sys/arch/mips/include/cpuregs.h     2003-10-30
> 00:41:10.000000000 +0100
> +++ mod_pmax/src/sys/arch/mips/include/cpuregs.h        2007-10-01
> 01:35:35.000000000 +0200
> @@ -736,6 +736,7 @@
>   */
> 
>  /* For MIPS_R3000 */
> +#define MIPS_REV_R2PMAX                0x16    /* R2000A used in some PMAXen */
>  #define        MIPS_REV_R3000          0x20
>  #define        MIPS_REV_R3000A         0x30

I've committed this, but renaming "MIPS_REV_R2PMAX" to
"MIPS_REV_R2000A".

Cheers,
Simon.