Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 4 Dec 2002 15:01:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 4 Dec 2002 15:01:22 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:7438 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Wed, 4 Dec 2002 15:01:22 -0500 Date: Wed, 4 Dec 2002 12:07:11 -0800 (PST) From: Linus Torvalds To: george anzinger cc: Stephen Rothwell , LKML , , "David S. Miller" , , , , , Subject: Re: [PATCH] compatibility syscall layer (lets try again) In-Reply-To: <3DEE5DE1.762699E3@mvista.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 863 Lines: 23 On Wed, 4 Dec 2002, george anzinger wrote: > > As a suggestion for a solution for this, is it true that > regs, on a system call, will ALWAYS be at the end of the > stack? No. Some architectures do not save enough state on the stack by default, and need to do more to use do_signal(). Look at alpha, for example - the default kernel stack doesn't contain all tbe registers needed, and the alpha do_signal() calling convention is different. If you want to handle do_signal(), then you need to do _all_ of this in architecture-specific files. You simply cannot do what you want to do in a generic way. Linus - 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/