Author: ps-guest Date: 2006-01-18 14:13:52 +0000 (Wed, 18 Jan 2006) New Revision: 1067
Added: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/swapcontext.S trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/swapcontext.S Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/getcontext.S trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S Log: * on entry to getcontext and swapcontext syscalls, carry have to be cleared Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/getcontext.S =================================================================== --- trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/getcontext.S 2006-01-18 14:08:57 UTC (rev 1066) +++ trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/getcontext.S 2006-01-18 14:13:52 UTC (rev 1067) @@ -21,6 +21,7 @@ .text ENTRY(__getcontext) + clc movl 0(%esp), %ecx /* save the return PC value */ DO_CALL (getcontext, 1) Added: trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/swapcontext.S =================================================================== --- trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/swapcontext.S 2006-01-18 14:08:57 UTC (rev 1066) +++ trunk/glibc-2.3-head/sysdeps/kfreebsd/i386/swapcontext.S 2006-01-18 14:13:52 UTC (rev 1067) @@ -0,0 +1,32 @@ +/* swap current context. + Copyright (C) 2006 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 + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#include <sysdep.h> + +.text +ENTRY(__swapcontext) + clc + DO_CALL (swapcontext, 2) + jb SYSCALL_ERROR_LABEL +L(pseudo_end): + ret + +PSEUDO_END(__swapcontext) + +weak_alias(__swapcontext, swapcontext) Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S =================================================================== --- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S 2006-01-18 14:08:57 UTC (rev 1066) +++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/getcontext.S 2006-01-18 14:13:52 UTC (rev 1067) @@ -21,6 +21,7 @@ .text ENTRY(__getcontext) + clc movq 0(%rsp), %rsi /* save the return PC value */ DO_CALL (getcontext, 1) Added: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/swapcontext.S =================================================================== --- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/swapcontext.S 2006-01-18 14:08:57 UTC (rev 1066) +++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/swapcontext.S 2006-01-18 14:13:52 UTC (rev 1067) @@ -0,0 +1,32 @@ +/* swap current context. + Copyright (C) 2006 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 + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#include <sysdep.h> + +.text +ENTRY(__swapcontext) + clc + DO_CALL (swapcontext, 2) + jb SYSCALL_ERROR_LABEL +L(pseudo_end): + ret + +PSEUDO_END(__swapcontext) + +weak_alias(__swapcontext, swapcontext) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]