mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	entered into RCS
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
 | 
					/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
 | 
				
			||||||
This file is part of the GNU C Library.
 | 
					This file is part of the GNU C Library.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The GNU C Library is free software; you can redistribute it and/or
 | 
					The GNU C Library is free software; you can redistribute it and/or
 | 
				
			||||||
@@ -47,8 +47,12 @@ DEFUN(__longjmp, (env, val), CONST jmp_buf env AND int val)
 | 
				
			|||||||
  asm volatile(/* Restore the data and address registers.  */
 | 
					  asm volatile(/* Restore the data and address registers.  */
 | 
				
			||||||
	       "movem%.l %0, d1-d7/a0-a7\n"
 | 
						       "movem%.l %0, d1-d7/a0-a7\n"
 | 
				
			||||||
	       /* Return to setjmp's caller.  */
 | 
						       /* Return to setjmp's caller.  */
 | 
				
			||||||
	       "jmp a0@" :
 | 
					#ifdef __motorola__
 | 
				
			||||||
	       /* No outputs.  */ : "g" (env[0].__dregs[0])
 | 
						       "jmp (a0)"
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
						       "jmp a0@"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
						       : /* No outputs.  */ : "g" (env[0].__dregs[0])
 | 
				
			||||||
	       /* We don't bother with the clobbers,
 | 
						       /* We don't bother with the clobbers,
 | 
				
			||||||
		  because this code always jumps out anyway.  */
 | 
							  because this code always jumps out anyway.  */
 | 
				
			||||||
	       );
 | 
						       );
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,7 +19,12 @@ Cambridge, MA 02139, USA.  */
 | 
				
			|||||||
#include <sysdep.h>
 | 
					#include <sysdep.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SYSCALL__ (pipe, 1)
 | 
					SYSCALL__ (pipe, 1)
 | 
				
			||||||
 | 
					#ifdef	__motorola__
 | 
				
			||||||
 | 
						move.l 4(sp), a0
 | 
				
			||||||
 | 
						movem.l d0-d1, (a0)
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
	movel sp@(4), a0
 | 
						movel sp@(4), a0
 | 
				
			||||||
	moveml d0-d1, a0@
 | 
						moveml d0-d1, a0@
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
	clrl d0
 | 
						clrl d0
 | 
				
			||||||
	rts
 | 
						rts
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
 | 
					/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
 | 
				
			||||||
This file is part of the GNU C Library.
 | 
					This file is part of the GNU C Library.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The GNU C Library is free software; you can redistribute it and/or
 | 
					The GNU C Library is free software; you can redistribute it and/or
 | 
				
			||||||
@@ -19,8 +19,15 @@ Cambridge, MA 02139, USA.  */
 | 
				
			|||||||
#include <sysdep.h>
 | 
					#include <sysdep.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SYSCALL__ (wait, 1)
 | 
					SYSCALL__ (wait, 1)
 | 
				
			||||||
 | 
					#ifdef __motorola__
 | 
				
			||||||
 | 
						tst.l 4(sp)
 | 
				
			||||||
 | 
						beq 1f
 | 
				
			||||||
 | 
						movea.l 4(sp), a0
 | 
				
			||||||
 | 
						move.l d1, (a0)
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
	tstl sp@(4)
 | 
						tstl sp@(4)
 | 
				
			||||||
	beq 1f
 | 
						beq 1f
 | 
				
			||||||
	moveal sp@(4), a0
 | 
						moveal sp@(4), a0
 | 
				
			||||||
	movel d1, a0@
 | 
						movel d1, a0@
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
1:	rts
 | 
					1:	rts
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user