From d6c81cbed0ddc0e37144c28617519be7b1268f0e Mon Sep 17 00:00:00 2001 From: uch Date: Thu, 19 Apr 2001 18:21:19 +0000 Subject: [PATCH] fix comment. fix KERNBASE, KERNTEXTOFF. --- sys/arch/hpcsh/include/param.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sys/arch/hpcsh/include/param.h b/sys/arch/hpcsh/include/param.h index fdb95794bf8f..b5d09c70e428 100644 --- a/sys/arch/hpcsh/include/param.h +++ b/sys/arch/hpcsh/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.2 2001/01/28 03:31:31 uch Exp $ */ +/* $NetBSD: param.h,v 1.3 2001/04/19 18:21:19 uch Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -39,7 +39,7 @@ */ /* - * Machine dependent constants for Intel 386. + * Machine dependent constants for hpcsh */ #ifndef _HPCSH_PARAM_H_ @@ -75,22 +75,16 @@ #define ALIGNBYTES (sizeof(int) - 1) #define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES) #define ALIGNED_POINTER(p, t) ((((u_long)(p)) & (sizeof(t)-1)) == 0) -/* #define ALIGNED_POINTER(p, t) 1 */ #define PGSHIFT 12 /* LOG2(NBPG) */ #define NBPG (1 << PGSHIFT) /* bytes/page */ #define PGOFSET (NBPG-1) /* byte offset into page */ #define NPTEPG (NBPG/(sizeof (pt_entry_t))) -#ifdef _KERNEL -#ifndef _LOCORE +#if defined _KERNEL && !defined _LOCORE extern vaddr_t ram_start; #define KERNBASE ram_start /* start of kernel virtual space */ #define KERNTEXTOFF ram_start /* start of kernel text */ -#else -#define KERNBASE IOM_RAM_BEGIN /* start of kernel virtual space */ -#define KERNTEXTOFF IOM_RAM_BEGIN /* start of kernel text */ -#endif #endif #define KERNSIZE 0x01800000 /* size of kernel virtual space */ #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)