Module Name: src
Committed By: yamt
Date: Wed May 27 12:15:11 UTC 2009
Modified Files:
src/sys/sys: proc.h
Log Message:
add comments on KSTACK_LOWEST_ADDR/KSTACK_SIZE.
To generate a diff of this commit:
cvs rdiff -u -r1.289 -r1.290 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.289 src/sys/sys/proc.h:1.290
--- src/sys/sys/proc.h:1.289 Thu May 14 23:12:14 2009
+++ src/sys/sys/proc.h Wed May 27 12:15:11 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: proc.h,v 1.289 2009/05/14 23:12:14 yamt Exp $ */
+/* $NetBSD: proc.h,v 1.290 2009/05/27 12:15:11 yamt Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -556,11 +556,20 @@
* kernel stack paramaters
* XXX require sizeof(struct user)
*/
-/* the lowest address of kernel stack */
+/*
+ * KSTACK_LOWEST_ADDR: return the lowest address of the lwp's kernel stack,
+ * excluding redzone etc.
+ *
+ * if <machine/proc.h> provides the MD definition, it will be used.
+ */
#ifndef KSTACK_LOWEST_ADDR
#define KSTACK_LOWEST_ADDR(l) ((void *)ALIGN((l)->l_addr + 1))
#endif
-/* size of kernel stack */
+/*
+ * KSTACK_SIZE: the size kernel stack for a lwp, excluding redzone etc.
+ *
+ * if <machine/proc.h> provides the MD definition, it will be used.
+ */
#ifndef KSTACK_SIZE
#define KSTACK_SIZE (USPACE - ALIGN(sizeof(struct user)))
#endif