diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-04-17 03:42:15 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-04-17 03:42:15 +0000 |
commit | d36015cb7ad92f7024a5754fc18618f0b0e13139 (patch) | |
tree | f134d2cf17198d6d3a9b68105527ee84adb387e4 /sys/arch/i386/include/param.h | |
parent | ddb3879f13964f6a99cf09d238b853194cbab068 (diff) |
i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.
DARPA funded work.
Diffstat (limited to 'sys/arch/i386/include/param.h')
-rw-r--r-- | sys/arch/i386/include/param.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/include/param.h b/sys/arch/i386/include/param.h index bce3df6538e..9fd2eede37e 100644 --- a/sys/arch/i386/include/param.h +++ b/sys/arch/i386/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.22 2003/04/09 07:53:57 niklas Exp $ */ +/* $OpenBSD: param.h,v 1.23 2003/04/17 03:42:14 drahn Exp $ */ /* $NetBSD: param.h,v 1.29 1996/03/04 05:04:26 cgd Exp $ */ /*- @@ -61,9 +61,15 @@ * Round p (pointer or byte index) up to a correctly-aligned value * for all data types (int, long, ...). The result is u_int and * must be cast to any desired pointer type. + * + * ALIGNED_POINTER is a boolean macro that checks whether an address + * is valid to fetch data elements of type t from on this architecture. + * This does not reflect the optimal alignment, just the possibility + * (within reasonable limits). */ #define ALIGNBYTES (sizeof(int) - 1) #define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES) +#define ALIGNED_POINTER(p,t) 1 #define PGSHIFT 12 /* LOG2(NBPG) */ #define NBPG (1 << PGSHIFT) /* bytes/page */ |