diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-20 19:02:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-12-20 19:02:30 +0000 |
commit | 664a880e367bbf984dbe49922fdace0ca00a5d91 (patch) | |
tree | 90d4583eb879ff0136c57ac9586aa724fb4f3add /sys/arch/hp300/include/param.h | |
parent | 6743d0464c802e3119c4632471d95b000cfa0d89 (diff) |
Temporarily revert the pmap_motorola changes, as they may account for
some problems as well.
Requested by deraadt@
Diffstat (limited to 'sys/arch/hp300/include/param.h')
-rw-r--r-- | sys/arch/hp300/include/param.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/sys/arch/hp300/include/param.h b/sys/arch/hp300/include/param.h index 85b39cad6b0..3f1974599c0 100644 --- a/sys/arch/hp300/include/param.h +++ b/sys/arch/hp300/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.18 2001/12/05 01:57:14 provos Exp $ */ +/* $OpenBSD: param.h,v 1.19 2001/12/20 19:02:27 miod Exp $ */ /* $NetBSD: param.h,v 1.35 1997/07/10 08:22:38 veego Exp $ */ /* @@ -65,6 +65,12 @@ #define KERNBASE 0x00000000 /* start of kernel virtual */ +#define SEGSHIFT 22 /* LOG2(NBSEG) */ +#define NBSEG (1 << SEGSHIFT) /* bytes/segment */ +#define SEGOFSET (NBSEG-1) /* byte offset into segment */ + +#define UPAGES 2 /* pages of u-area */ + #include <m68k/param.h> #define NPTEPG (NBPG/(sizeof (pt_entry_t))) @@ -85,4 +91,18 @@ void _delay __P((u_int)); #endif /* _KERNEL && !_LOCORE */ +#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) \ + ((curproc->p_md.md_flags & MDP_HPUXMMAP) && \ + ((unsigned)(v) & HPMMMASK) && \ + ((unsigned)(v) & HPMMMASK) != HPMMMASK) +#define HPMMBASEADDR(v) \ + ((unsigned)(v) & ~HPMMMASK) +#endif + #endif /* !_MACHINE_PARAM_H_ */ |