Module Name: src Committed By: mrg Date: Wed Apr 13 08:45:00 UTC 2011
Modified Files: src/sys/sys: proc.h Log Message: expose the KSTACK_LOWEST_ADDR and KSTACK_SIZE to _KMEMUSER as well, like the x86 versions do. for crash(8). To generate a diff of this commit: cvs rdiff -u -r1.302 -r1.303 src/sys/sys/proc.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/proc.h diff -u src/sys/sys/proc.h:1.302 src/sys/sys/proc.h:1.303 --- src/sys/sys/proc.h:1.302 Tue Mar 8 12:39:29 2011 +++ src/sys/sys/proc.h Wed Apr 13 08:45:00 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: proc.h,v 1.302 2011/03/08 12:39:29 pooka Exp $ */ +/* $NetBSD: proc.h,v 1.303 2011/04/13 08:45:00 mrg Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -534,6 +534,20 @@ #define tsleep(chan, pri, wmesg, timo) \ ltsleep(chan, pri, wmesg, timo, NULL) +#ifdef KSTACK_CHECK_MAGIC +void kstack_setup_magic(const struct lwp *); +void kstack_check_magic(const struct lwp *); +#else +#define kstack_setup_magic(x) +#define kstack_check_magic(x) +#endif + +extern struct emul emul_netbsd; + +#endif /* _KERNEL */ + +#if defined(_KMEMUSER) || defined(_KERNEL) + /* * Kernel stack parameters. * @@ -551,15 +565,6 @@ #define KSTACK_SIZE (USPACE - ALIGN(sizeof(struct pcb))) #endif -#ifdef KSTACK_CHECK_MAGIC -void kstack_setup_magic(const struct lwp *); -void kstack_check_magic(const struct lwp *); -#else -#define kstack_setup_magic(x) -#define kstack_check_magic(x) -#endif +#endif /* _KMEMUSER || _KERNEL */ -extern struct emul emul_netbsd; - -#endif /* _KERNEL */ #endif /* !_SYS_PROC_H_ */