1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.

* sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
	* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
	check for the first argument.
This commit is contained in:
Roland McGrath
2007-07-15 00:12:18 +00:00
parent b25effae3d
commit 84c23a3d72
4 changed files with 18 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
/* Copyright (C) 1999, 2000, 2003, 2004, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -32,12 +32,12 @@
ENTRY(__clone)
/* sanity check arguments. */
tst r4, r4
bf/s 1f
bt/s 0f
tst r5, r5
bf/s 1f
mov #-EINVAL,r0
bf 1f
0:
bra .Lsyscall_error
nop
mov #-EINVAL,r0
1:
/* insert the args onto the new stack */
mov.l r7, @-r5