version 1.9, 2007/03/03 14:37:54 |
version 1.9.20.2, 2008/03/23 02:04:05 |
|
|
/* $NetBSD$ */ |
/* param.h,v 1.9.20.1 2008/01/09 01:46:24 matt Exp */ |
|
|
/* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */ |
/* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */ |
|
|
|
|
* Utah $Hdr: param.h 1.18 94/12/16$ |
* Utah $Hdr: param.h 1.18 94/12/16$ |
*/ |
*/ |
|
|
#ifdef _KERNEL_OPT |
|
#include "opt_compat_hpux.h" |
|
#endif |
|
#include <sys/featuretest.h> |
#include <sys/featuretest.h> |
|
|
#if defined(_NETBSD_SOURCE) |
#if defined(_NETBSD_SOURCE) |
|
|
|
|
#define _MACHINE_ARCH hppa |
#define _MACHINE_ARCH hppa |
#define MACHINE_ARCH "hppa" |
#define MACHINE_ARCH "hppa" |
#define MID_MACHINE MID_HPUX800 |
#define MID_MACHINE MID_HPPA |
|
|
/* |
/* |
* Round p (pointer or byte index) up to a correctly-aligned value for all |
* Round p (pointer or byte index) up to a correctly-aligned value for all |
|
|
|
|
#define btop(x) ((unsigned long)(x) >> PGSHIFT) |
#define btop(x) ((unsigned long)(x) >> PGSHIFT) |
#define ptob(x) ((unsigned long)(x) << PGSHIFT) |
#define ptob(x) ((unsigned long)(x) << PGSHIFT) |
|
|
#ifdef _KERNEL |
|
#ifdef COMPAT_HPUX |
|
/* |
|
* Constants/macros for HPUX multiple mapping of user address space. |
|
* Pages in the first 256Mb are mapped in at every 256Mb segment. |
|
*/ |
|
#define HPMMMASK 0xF0000000 |
|
#define ISHPMMADDR(v) 0 /* XXX ...jef */ |
|
#define HPMMBASEADDR(v) ((unsigned)(v) & ~HPMMMASK) |
|
#endif |
|
|
|
#endif |
|