* Define PAGE_SHIFT, PAGE_SIZE, and PAGE_MASK in <hppa/vmparam.h>,
not in <hppa/param.h>. * Define NBPG in terms of PGSHIFT.
This commit is contained in:
parent
65d98ed786
commit
14491f27dd
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: param.h,v 1.1 2002/06/05 01:04:22 fredette Exp $ */
|
||||
/* $NetBSD: param.h,v 1.2 2003/04/01 20:47:25 thorpej Exp $ */
|
||||
|
||||
/* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */
|
||||
|
||||
|
@ -46,13 +46,9 @@
|
|||
#define ALIGN(p) (((u_long)(p) + ALIGNBYTES) &~ ALIGNBYTES)
|
||||
#define ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t) - 1)) == 0)
|
||||
|
||||
#define PAGE_SIZE 4096
|
||||
#define PAGE_MASK (PAGE_SIZE-1)
|
||||
#define PAGE_SHIFT 12
|
||||
|
||||
#define NBPG 4096 /* bytes/page */
|
||||
#define PGOFSET (NBPG-1) /* byte offset into page */
|
||||
#define PGSHIFT 12 /* LOG2(NBPG) */
|
||||
#define NBPG (1 << PGSHIFT) /* bytes/page */
|
||||
#define PGOFSET (NBPG-1) /* byte offset into page */
|
||||
|
||||
#define SEGSHIFT (PGSHIFT + (PGSHIFT-PTESHIFT)) /* LOG2(NBSEG) */
|
||||
#define NBSEG (1 << SEGSHIFT) /* bytes/segment (quadrant) */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vmparam.h,v 1.3 2002/12/10 05:14:28 thorpej Exp $ */
|
||||
/* $NetBSD: vmparam.h,v 1.4 2003/04/01 20:47:25 thorpej Exp $ */
|
||||
|
||||
/* $OpenBSD: vmparam.h,v 1.17 2001/09/22 18:00:09 miod Exp $ */
|
||||
|
||||
|
@ -31,6 +31,15 @@
|
|||
/*
|
||||
* Machine dependent constants for HP PA
|
||||
*/
|
||||
|
||||
/*
|
||||
* We use 4K pages on the HP PHA. Override the PAGE_* definitions
|
||||
* to be compile-time constants.
|
||||
*/
|
||||
#define PAGE_SHIFT 12
|
||||
#define PAGE_SIZE (1 << PAGE_SHIFT)
|
||||
#define PAGE_MASK (PAGE_SIZE - 1)
|
||||
|
||||
/*
|
||||
* USRSTACK is the top (end) of the user stack.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue