m68k: allow six arguments in syscall function
authorThorsten Glaser <tg@mirbsd.de>
Sun, 4 Dec 2011 18:18:08 +0000 (19:18 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 4 Dec 2011 18:19:05 +0000 (19:19 +0100)
ChangeLog.m68k
sysdeps/unix/sysv/linux/m68k/syscall.S

index 42dcf75..bd86317 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-04  Thorsten Glaser  <tg@mirbsd.de>
+
+       * sysdeps/unix/sysv/linux/m68k/syscall.S: Allow six arguments.
+
 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
 
        * sysdeps/m68k/stackinfo.h (stackinfo_get_sp, stackinfo_sub_sp):
index 4f2c747..d1f5c83 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1998, 2011 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
@@ -24,9 +24,9 @@
        .text
 ENTRY (syscall)
        move.l 4(%sp), %d0      /* Load syscall number.  */
-       _DOARGS_5 (24)          /* Frob arguments.  */
+       _DOARGS_6 (28)          /* Frob arguments.  */
        trap &0                 /* Do the system call.  */
-       UNDOARGS_5              /* Unfrob arguments.  */
+       UNDOARGS_6              /* Unfrob arguments.  */
        cmp.l &-4095, %d0       /* Check %d0 for error.  */
        jcc SYSCALL_ERROR_LABEL /* Jump to error handler if negative.  */
        rts                     /* Return to caller.  */