Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 5 Nov 2002 09:22:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 5 Nov 2002 09:22:23 -0500 Received: from modemcable074.85-202-24.mtl.mc.videotron.ca ([24.202.85.74]:49937 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Tue, 5 Nov 2002 09:22:22 -0500 Date: Tue, 5 Nov 2002 09:30:10 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Russell King cc: Linux Kernel Subject: Re: 2.5.45 odd deref in serial_in In-Reply-To: <20021105102055.B20224@flint.arm.linux.org.uk> 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: 934 Lines: 27 On Tue, 5 Nov 2002, Russell King wrote: > static _INLINE_ unsigned int serial_in(struct uart_8250_port *up, int offset) > { > offset <<= up->port.regshift; > > switch (up->port.iotype) { > > which also dereferences "up". So something may have corrupted %ebx > between executing that switch statement and executing the inb(). > > Could the NMI handler be corrupting %ebx ? Yes that is highly likely, my current NMI handler does a fair amount of work, however it chains from the current default nmi handler, i thought register saving was already taken care of otherwise wouldn't i have all sorts of other strange bugs creeping up? Zwane -- function.linuxpower.ca - 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/