Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262085AbUCDS5M (ORCPT ); Thu, 4 Mar 2004 13:57:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262073AbUCDS4h (ORCPT ); Thu, 4 Mar 2004 13:56:37 -0500 Received: from mail6.iserv.net ([204.177.184.156]:60588 "EHLO mail6.iserv.net") by vger.kernel.org with ESMTP id S262083AbUCDSys (ORCPT ); Thu, 4 Mar 2004 13:54:48 -0500 Message-ID: <40477B7C.4050809@didntduck.org> Date: Thu, 04 Mar 2004 13:54:52 -0500 From: Brian Gerst User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Linus Torvalds CC: Meelis Roos , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH] PnP BIOS exception fixes References: <404769B5.7080900@quark.didntduck.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1047 Lines: 30 Linus Torvalds wrote: > > On Thu, 4 Mar 2004, Brian Gerst wrote: > >>This patch fixes two errors in fixup_exception() for PnP BIOS faults: >>- Check for the correct segments used for the BIOS >>- Fix asm constraints so that EIP and ESP are properly reloaded > > > I'm almost certain that you should NOT use "g" as a constraint, since that > allows the address to be on the stack frame, so when we compile without > frame pointers and the compiler uses a %esp-relative thing for the branch > address, that will totally screw up when we just re-loaded %esp inside the > asm. > > Can you use "r" instead, and test that it all works for you, and send an > updated patch? Or just explain why I'm wrong. > > Linus > The inputs are global variables, with absolute addresses. -- Brian Gerst - 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/