diff options
Diffstat (limited to 'sys/arch/amiga/include/param.h')
-rw-r--r-- | sys/arch/amiga/include/param.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/amiga/include/param.h b/sys/arch/amiga/include/param.h index c7bb979d23a..656303d5957 100644 --- a/sys/arch/amiga/include/param.h +++ b/sys/arch/amiga/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:26 miod Exp $ */ /* $NetBSD: param.h,v 1.35 1997/07/10 08:22:36 veego Exp $ */ /* @@ -60,6 +60,15 @@ #define KERNBASE 0x00000000 /* start of kernel virtual */ +#define SEGSHIFT 24 /* LOG2(NBSEG) [68030 value] */ +/* bytes/segment */ +/* (256 * (1 << PGSHIFT)) == (1 << SEGSHIFT) */ +#define NBSEG ((mmutype == MMU_68040) \ + ? (32 * (1 << PGSHIFT)) : (256 * (1 << PGSHIFT))) +#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))) |