summary refs log tree commit diff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-01-21 02:03:13 +0000
committerUlrich Drepper <drepper@redhat.com>2004-01-21 02:03:13 +0000
commitdebddf649e022359a828e2424efd1dc606d8a24c (patch)
tree4831d6ad5356001bc4d5454a49cabda86a87a7bb /nptl/allocatestack.c
parent5673ccc1756d56f2b2d47f1d2ce9f074095b5c1f (diff)
downloadglibc-debddf649e022359a828e2424efd1dc606d8a24c.tar.gz
glibc-debddf649e022359a828e2424efd1dc606d8a24c.tar.xz
glibc-debddf649e022359a828e2424efd1dc606d8a24c.zip
Update.
	* allocatestack.c: Pretty printing.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r--nptl/allocatestack.c31
1 files changed, 21 insertions, 10 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 7aa5af21e4..7983bed273 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -32,28 +32,39 @@
 #ifndef NEED_SEPARATE_REGISTER_STACK
 
 /* Most architectures have exactly one stack pointer.  Some have more.  */
-#define STACK_VARIABLES void *stackaddr
+# define STACK_VARIABLES void *stackaddr
 
 /* How to pass the values to the 'create_thread' function.  */
-#define STACK_VARIABLES_ARGS stackaddr
+# define STACK_VARIABLES_ARGS stackaddr
 
 /* How to declare function which gets there parameters.  */
-#define STACK_VARIABLES_PARMS void *stackaddr
+# define STACK_VARIABLES_PARMS void *stackaddr
 
 /* How to declare allocate_stack.  */
-#define ALLOCATE_STACK_PARMS void **stack
+# define ALLOCATE_STACK_PARMS void **stack
 
 /* This is how the function is called.  We do it this way to allow
    other variants of the function to have more parameters.  */
-#define ALLOCATE_STACK(attr, pd) allocate_stack (attr, pd, &stackaddr)
+# define ALLOCATE_STACK(attr, pd) allocate_stack (attr, pd, &stackaddr)
 
 #else
 
-#define STACK_VARIABLES void *stackaddr; size_t stacksize
-#define STACK_VARIABLES_ARGS stackaddr, stacksize
-#define STACK_VARIABLES_PARMS void *stackaddr, size_t stacksize
-#define ALLOCATE_STACK_PARMS void **stack, size_t *stacksize
-#define ALLOCATE_STACK(attr, pd) \
+/* We need two stacks.  The kernel will place them but we have to tell
+   the kernel about the size of the reserved address space.  */
+# define STACK_VARIABLES void *stackaddr; size_t stacksize
+
+/* How to pass the values to the 'create_thread' function.  */
+# define STACK_VARIABLES_ARGS stackaddr, stacksize
+
+/* How to declare function which gets there parameters.  */
+# define STACK_VARIABLES_PARMS void *stackaddr, size_t stacksize
+
+/* How to declare allocate_stack.  */
+# define ALLOCATE_STACK_PARMS void **stack, size_t *stacksize
+
+/* This is how the function is called.  We do it this way to allow
+   other variants of the function to have more parameters.  */
+# define ALLOCATE_STACK(attr, pd) \
   allocate_stack (attr, pd, &stackaddr, &stacksize)
 
 #endif