Formerly ../mach/setup-thread.c.~10~
authorroland <roland>
Fri, 22 Apr 1994 23:34:35 +0000 (23:34 +0000)
committerroland <roland>
Fri, 22 Apr 1994 23:34:35 +0000 (23:34 +0000)
mach/setup-thread.c

index 4bec113..87412d5 100644 (file)
@@ -78,8 +78,7 @@ __mach_setup_thread (task_t task, thread_t thread, void *pc,
   memset (&ts, 0, sizeof (ts));
   ts.PC = (int) pc;
 #ifdef STACK_GROWTH_DOWN
-  ts.SP = stack + size;
-  stack -= __vm_page_size;
+  ts.SP = stack + __vm_page_size + size;
 #elif defined (STACK_GROWTH_UP)
   ts.SP = stack;
   stack += size;