parent
8acff45e10
commit
d6c81cbed0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue