From 84c23a3d72c8487e0906ad7d6942ba4d1cd7b950 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 15 Jul 2007 00:12:18 +0000 Subject: * 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. --- sysdeps/unix/sysv/linux/sh/clone.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S index 7941c6b..f892c47 100644 --- a/sysdeps/unix/sysv/linux/sh/clone.S +++ b/sysdeps/unix/sysv/linux/sh/clone.S @@ -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 -- cgit v1.1