Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 9 Dec 2002 12:19:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 9 Dec 2002 12:19:54 -0500 Received: from deimos.hpl.hp.com ([192.6.19.190]:16585 "EHLO deimos.hpl.hp.com") by vger.kernel.org with ESMTP id ; Mon, 9 Dec 2002 12:19:54 -0500 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15860.53866.127553.424553@napali.hpl.hp.com> Date: Mon, 9 Dec 2002 09:27:06 -0800 To: Linus Torvalds Cc: Daniel Jacobowitz , george anzinger , Jim Houston , Stephen Rothwell , LKML , , "David S. Miller" , , , , , Subject: Re: [PATCH] compatibility syscall layer (lets try again) In-Reply-To: References: <20021209154142.GA22901@nevyn.them.org> X-Mailer: VM 7.07 under Emacs 21.2.1 Reply-To: davidm@hpl.hp.com X-URL: http://www.hpl.hp.com/personal/David_Mosberger/ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1005 Lines: 20 >>>>> On Mon, 9 Dec 2002 08:48:13 -0800 (PST), Linus Torvalds said: Linus> Architecture maintainers, can you comment on how easy/hard it Linus> is to do the same thing on your architectures? I _assume_ Linus> it's trivial (akin to the three-liner register state change Linus> in i386/kernel/signal.c). It's not trivial on ia64: we keep the syscall arguments in registers (the stacked registers, to be precise), so to modify them, we need to (a) flush the stacked registers to memory and (b) find the frame that contains the syscall arguments, (c) patch the values in memory, and (d) reload the stacked registers. It's doable (like you say, ptrace() does it already), but that's about the best I can say about it... --david - 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/