[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] fix m68k 6 arg syscalls



I'd like to backport this from mainline to fix m68k builds, ok?

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@xxxxxxxxxxxxxxxx    ::     http://www.planetfall.pwp.blueyonder.co.uk

Index: ChangeLog.m68k
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.m68k,v
retrieving revision 1.4
retrieving revision 1.5
diff -c -3 -p -r1.4 -r1.5
*** ChangeLog.m68k	3 Oct 2006 15:50:57 -0000	1.4
--- ChangeLog.m68k	27 Nov 2006 23:03:17 -0000	1.5
***************
*** 1,3 ****
--- 1,8 ----
+ 2006-11-28  Andreas Schwab  <schwab@xxxxxxx>
+ 
+ 	* sysdeps/unix/sysv/linux/m68k/sysdep.h (DOARGS_6, _DOARGS_6)
+ 	(UNDOARGS_6): Define for 6-argument syscall stubs.
+ 
  2006-10-03  Andreas Schwab  <schwab@xxxxxxx>
  
  	* sysdeps/m68k/setjmp.c: Use __builtin_return_address and
Index: sysdeps/unix/sysv/linux/m68k/sysdep.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/m68k/sysdep.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -c -3 -p -r1.32 -r1.33
*** sysdeps/unix/sysv/linux/m68k/sysdep.h	3 Oct 2006 14:44:27 -0000	1.32
--- sysdeps/unix/sysv/linux/m68k/sysdep.h	27 Nov 2006 23:03:17 -0000	1.33
***************
*** 1,4 ****
! /* Copyright (C) 1996, 1997, 1998, 2000, 2003, 2004 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Written by Andreas Schwab, <schwab@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
     December 1995.
--- 1,4 ----
! /* Copyright (C) 1996, 1997, 1998, 2000, 2003, 2004, 2006 Free Software Foundation, Inc.
     This file is part of the GNU C Library.
     Written by Andreas Schwab, <schwab@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
     December 1995.
*************** SYSCALL_ERROR_LABEL:							      \
*** 195,200 ****
--- 195,204 ----
  #define _DOARGS_5(n)	move.l %d5, -(%sp); move.l n+4(%sp), %d5; _DOARGS_4 (n)
  #define UNDOARGS_5	UNDOARGS_4; move.l (%sp)+, %d5
  
+ #define DOARGS_6	_DOARGS_6 (24)
+ #define _DOARGS_6(n)	_DOARGS_5 (n-4); move.l %a0, -(%sp); move.l n+12(%sp), %a0;
+ #define UNDOARGS_6	move.l (%sp)+, %a0; UNDOARGS_5
+ 
  
  #define	ret	rts
  #if 0 /* Not used by Linux */