diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-03-05 01:15:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-03-05 01:15:27 +0000 |
commit | 1b2a1e164cac68fc8382984c0c4cc8ae47b10de0 (patch) | |
tree | 96a0bc88c4c52bbddf74f46e1207fbe29d587a2b /sys/arch/hppa/include | |
parent | e65b98a142f78ed32246495f2063b4a885afa357 (diff) |
#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for
the circumstances we need pagesize known at compile time, not getpagesize()
runtime. Use it for malloc storage sizes, for shm, and to set pthread stack
default sizes. The stack sizes were a mess, and pushing them towards
page-aligned is healthy move (which will also be needed by the coming
stack register checker)
ok guenther kettenis, discussion with stefan
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r-- | sys/arch/hppa/include/_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/_types.h b/sys/arch/hppa/include/_types.h index 9e8f9437ca8..2cdb8923995 100644 --- a/sys/arch/hppa/include/_types.h +++ b/sys/arch/hppa/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.25 2015/09/26 16:01:00 guenther Exp $ */ +/* $OpenBSD: _types.h,v 1.26 2018/03/05 01:15:25 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -55,6 +55,7 @@ typedef struct label_t { #define _STACKALIGNBYTES _ALIGNBYTES #define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) #define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0) +#define _MAX_PAGE_SHIFT 12 /* same as PAGE_SHIFT */ typedef unsigned long hppa_hpa_t; /* XXX */ typedef unsigned long hppa_spa_t; /* XXX */ |