From 08abf06dcbd210aa8e8997e74455ca910f51fc0f Mon Sep 17 00:00:00 2001 From: chs Date: Sun, 18 Jul 2004 21:21:34 +0000 Subject: [PATCH] expose the STACK_* macros to userland if __EXPOSE_STACK is defined. --- sys/sys/param.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/param.h b/sys/sys/param.h index 75102e8cde84..3dbe21038c1e 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.198 2004/07/01 10:03:32 hannken Exp $ */ +/* $NetBSD: param.h,v 1.199 2004/07/18 21:21:34 chs Exp $ */ /*- * Copyright (c) 1982, 1986, 1989, 1993 @@ -156,7 +156,7 @@ * the maximum (in the "maxsaddr" sense) stack address of the * allocated memory. */ -#ifdef _KERNEL +#if defined(_KERNEL) || defined(__EXPOSE_STACK) #ifdef __MACHINE_STACK_GROWS_UP #define STACK_GROW(sp, _size) (((caddr_t)(sp)) + (_size)) #define STACK_SHRINK(sp, _size) (((caddr_t)(sp)) - (_size)) @@ -172,7 +172,7 @@ #define STACK_ALLOC(sp, _size) (((caddr_t)(sp)) - (_size)) #define STACK_MAX(p, _size) ((caddr_t)(p)) #endif -#endif /* _KERNEL */ +#endif /* defined(_KERNEL) || defined(__EXPOSE_STACK) */ /* * Priorities. Note that with 32 run queues, differences less than 4 are