PERFORCE change 32333 for review

Peter Wemm peter at FreeBSD.org
Sun Jun 1 16:13:34 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=32333

Change 32333 by peter at peter_hammer on 2003/06/01 16:13:17

	make libc_r work (at least as well as on i386)

Affected files ...

.. //depot/projects/hammer/lib/libc_r/uthread/uthread_sig.c#6 edit

Differences ...

==== //depot/projects/hammer/lib/libc_r/uthread/uthread_sig.c#6 (text+ko) ====

@@ -1043,7 +1043,7 @@
  	/* Get the top of the threads stack: */
 	stackp = GET_STACK_JB(thread->ctx.jb);
 
-#if !defined(__ia64__) && !defined(__amd64__)
+#if !defined(__ia64__)
 	/*
 	 * Leave a little space on the stack and round down to the
 	 * nearest aligned word:
@@ -1056,8 +1056,6 @@
 	stackp -= sizeof(struct pthread_signal_frame);
 #if defined(__ia64__)
 	stackp &= ~0xFUL;
-#elif defined(__amd64__)
-	stackp -= 128;
 #endif
 
 	psf = (struct pthread_signal_frame *) stackp;
@@ -1087,7 +1085,7 @@
 	/*
 	 * Set up the context:
 	 */
-#if !defined(__ia64__) && !defined(__amd64__)
+#if !defined(__ia64__)
 	stackp -= sizeof(double);
 #endif
 	_setjmp(thread->ctx.jb);


More information about the p4-projects mailing list