From c5feae5dbff21c18571a788888e67931eff3e4f7 Mon Sep 17 00:00:00 2001 From: fredette Date: Mon, 14 May 2001 20:35:58 +0000 Subject: [PATCH] Now always define PGSHIFT. Thanks to the ELF move, note the new larger msgbuf size and different KERNBASE. --- sys/arch/sun2/include/param.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/sun2/include/param.h b/sys/arch/sun2/include/param.h index 2a02868a4a53..a42d474950df 100644 --- a/sys/arch/sun2/include/param.h +++ b/sys/arch/sun2/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.2 2001/04/10 12:24:05 fredette Exp $ */ +/* $NetBSD: param.h,v 1.3 2001/05/14 20:35:58 fredette Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -53,22 +53,22 @@ #define MACHINE_ARCH "m68000" #define MID_MACHINE MID_M680002K +#define PGSHIFT 11 /* LOG2(NBPG) */ + #ifdef MSGBUFSIZE #error "MSGBUFSIZE is not user-adjustable for this arch" #endif -#define MSGBUFOFF 0x200 -#define MSGBUFSIZE (NBPG - MSGBUFOFF) +#define MSGBUFOFF 0x0 +#define MSGBUFSIZE ((NBPG * 4) - MSGBUFOFF) /* This is needed by ps (actually USPACE). */ #define UPAGES (16384 / NBPG) /* pages of u-area */ #if defined(_KERNEL) || defined(_STANDALONE) -#define KERNBASE 0x00008000 /* start of kernel virtual */ -#define KERNTEXTOFF 0x0000C000 /* start of kernel text */ +#define KERNBASE 0x00006000 /* start of kernel virtual */ #define KERN_END 0x00E00000 /* end of kernel virtual */ -#define PGSHIFT 11 /* LOG2(NBPG) */ #define SEGSHIFT 15 /* LOG2(NBSG) */ #define NBSG (1 << SEGSHIFT) /* bytes/segment */ #define SEGOFSET (NBSG-1) /* byte offset into segment */