From 4a40b38f6355ac2b1942ac10341eabbd6d3b793b Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sun, 4 Dec 2011 19:18:08 +0100 Subject: [PATCH] m68k: allow six arguments in syscall function --- ChangeLog.m68k | 4 ++++ sysdeps/unix/sysv/linux/m68k/syscall.S | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog.m68k b/ChangeLog.m68k index 42dcf75db0..bd8631763d 100644 --- a/ChangeLog.m68k +++ b/ChangeLog.m68k @@ -1,3 +1,7 @@ +2011-12-04 Thorsten Glaser + + * sysdeps/unix/sysv/linux/m68k/syscall.S: Allow six arguments. + 2011-11-01 Andreas Schwab * sysdeps/m68k/stackinfo.h (stackinfo_get_sp, stackinfo_sub_sp): diff --git a/sysdeps/unix/sysv/linux/m68k/syscall.S b/sysdeps/unix/sysv/linux/m68k/syscall.S index 4f2c747c27..d1f5c83ca4 100644 --- a/sysdeps/unix/sysv/linux/m68k/syscall.S +++ b/sysdeps/unix/sysv/linux/m68k/syscall.S @@ -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. */ -- 2.43.5