1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00

* sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_LABEL): New

definition. 
(PSEUDO, SYSCALL_ERROR_HANDLER): Use it instead of syscall_error. 
* sysdeps/unix/sysv/linux/m68k/clone.S: Likewise. 
* sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise. 
* sysdeps/unix/sysv/linux/m68k/socket.S: Likewise. 
* sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
	* sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_LABEL): New
	definition.
	(PSEUDO, SYSCALL_ERROR_HANDLER): Use it instead of syscall_error.
	* sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
	* sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
	* sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
	* sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
This commit is contained in:
Andreas Schwab
1998-06-10 01:37:21 +00:00
parent 9e2c0dae9b
commit 4bec453640
6 changed files with 31 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
Contributed by Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
The GNU C Library is free software; you can redistribute it and/or
@@ -32,10 +32,10 @@ ENTRY (__clone)
movel #-EINVAL, %d0
movel 4(%sp), %a0 /* no NULL function pointers */
tstl %a0
jeq syscall_error
jeq SYSCALL_ERROR_LABEL
movel 8(%sp), %a1 /* no NULL stack pointers */
tstl %a1
jeq syscall_error
jeq SYSCALL_ERROR_LABEL
/* Allocate space and copy the argument onto the new stack. */
movel 16(%sp), -(%a1)
@@ -48,7 +48,7 @@ ENTRY (__clone)
exg %d2, %a1 /* restore %d2 */
tstl %d0
jmi syscall_error
jmi SYSCALL_ERROR_LABEL
jeq thread_start
rts