Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips Nuke MIPS_16K_PAGE conditional which should be...
details: https://anonhg.NetBSD.org/src/rev/ad224c2feb8b
branches: trunk
changeset: 484152:ad224c2feb8b
user: nisimura <nisimura%NetBSD.org@localhost>
date: Mon Mar 27 02:55:13 2000 +0000
description:
Nuke MIPS_16K_PAGE conditional which should be commited in. It
was used for debugg'n purposes which only make senses on particular
hardware configurations and has never been intended to extend pagesize
of NetBSD/mips.
diffstat:
sys/arch/mips/include/mips3_pte.h | 8 +-------
sys/arch/mips/include/mips_param.h | 8 +-------
sys/arch/mips/mips/mips_machdep.c | 8 ++------
3 files changed, 4 insertions(+), 20 deletions(-)
diffs (81 lines):
diff -r 5e498e643600 -r ad224c2feb8b sys/arch/mips/include/mips3_pte.h
--- a/sys/arch/mips/include/mips3_pte.h Mon Mar 27 01:51:17 2000 +0000
+++ b/sys/arch/mips/include/mips3_pte.h Mon Mar 27 02:55:13 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips3_pte.h,v 1.10 1999/09/25 00:00:37 shin Exp $ */
+/* $NetBSD: mips3_pte.h,v 1.11 2000/03/27 02:55:13 nisimura Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -81,15 +81,9 @@
#define MIPS3_PG_WIRED 0x80000000 /* SW */
#define MIPS3_PG_RO 0x40000000 /* SW */
-#ifdef MIPS_16K_PAGE /* enable kernel support for 16k pages */
-#define MIPS3_PG_SVPN 0xffffc000 /* Software page no mask */
-#define MIPS3_PG_HVPN 0xffff8000 /* Hardware page no mask */
-#define MIPS3_PG_ODDPG 0x00004000 /* Odd even pte entry */
-#else
#define MIPS3_PG_SVPN 0xfffff000 /* Software page no mask */
#define MIPS3_PG_HVPN 0xffffe000 /* Hardware page no mask */
#define MIPS3_PG_ODDPG 0x00001000 /* Odd even pte entry */
-#endif
#define MIPS3_PG_ASID 0x000000ff /* Address space ID */
#define MIPS3_PG_G 0x00000001 /* Global; ignore ASID if in lo0 & lo1 */
#define MIPS3_PG_V 0x00000002 /* Valid */
diff -r 5e498e643600 -r ad224c2feb8b sys/arch/mips/include/mips_param.h
--- a/sys/arch/mips/include/mips_param.h Mon Mar 27 01:51:17 2000 +0000
+++ b/sys/arch/mips/include/mips_param.h Mon Mar 27 02:55:13 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_param.h,v 1.18 2000/02/19 09:22:51 mycroft Exp $ */
+/* $NetBSD: mips_param.h,v 1.19 2000/03/27 02:55:14 nisimura Exp $ */
#ifdef _KERNEL
#include <machine/cpu.h>
@@ -34,15 +34,9 @@
#define ALIGN(p) (((u_int)(p) + ALIGNBYTES) & ~ALIGNBYTES)
#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
-#ifdef MIPS_16K_PAGE /* enable kernel support for 16k pages */
-#define NBPG (1024*16) /* bytes/page */
-#define PGOFSET (NBPG-1) /* byte offset into page */
-#define PGSHIFT 14 /* LOG2(NBPG) */
-#else
#define NBPG 4096 /* bytes/page */
#define PGOFSET (NBPG-1) /* byte offset into page */
#define PGSHIFT 12 /* LOG2(NBPG) */
-#endif
#define NPTEPG (NBPG/4)
#define NBSEG 0x400000 /* bytes/segment */
diff -r 5e498e643600 -r ad224c2feb8b sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Mon Mar 27 01:51:17 2000 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Mon Mar 27 02:55:13 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.69 2000/03/24 18:15:41 soren Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.70 2000/03/27 02:55:16 nisimura Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.69 2000/03/24 18:15:41 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.70 2000/03/27 02:55:16 nisimura Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_ultrix.h"
@@ -117,12 +117,8 @@
caddr_t msgbufaddr;
#ifdef MIPS3_4100 /* VR4100 core */
-#ifdef MIPS_16K_PAGE /* enable kernel support for 16k pages */
-int default_pg_mask = 0x00007800;
-#else
int default_pg_mask = 0x00001800;
#endif
-#endif
#ifdef MIPS1
#ifdef ENABLE_MIPS_TX3900
Home |
Main Index |
Thread Index |
Old Index