Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 9 Dec 2002 12:13:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 9 Dec 2002 12:13:01 -0500 Received: from d12lmsgate-5.de.ibm.com ([194.196.100.238]:50571 "EHLO d12lmsgate-5.de.ibm.com") by vger.kernel.org with ESMTP id convert rfc822-to-8bit; Mon, 9 Dec 2002 12:13:01 -0500 Importance: Normal Sensitivity: Subject: Re: [PATCH] compatibility syscall layer (lets try again) To: Linus Torvalds Cc: Daniel Jacobowitz , george anzinger , Jim Houston , Stephen Rothwell , LKML , , "David S. Miller" , , , , X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: "Martin Schwidefsky" Date: Mon, 9 Dec 2002 18:16:43 +0100 X-MIMETrack: Serialize by Router on D12ML016/12/M/IBM(Release 5.0.9a |January 7, 2002) at 09/12/2002 18:19:14 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1052 Lines: 27 Hi Linus, >Architecture maintainers, can you comment on how easy/hard it is to do the >same thing on your architectures? I _assume_ it's trivial (akin to the >three-liner register state change in i386/kernel/signal.c). For s390/s390x this is actually quite tricky. The system call number is coded in the instruction, e.g. 0x0aa2 is svc 162 or sys_nanosleep. There is no register involved that contains the system call number I could simply change. I either have to change the instruction (no way) or I have to avoid going back to userspace in this case. This would require assembler magic in entry.S. Not nice. blue skies, Martin Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH Sch?naicherstr. 220, D-71032 B?blingen, Telefon: 49 - (0)7031 - 16-2247 E-Mail: schwidefsky@de.ibm.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/