From owner-freebsd-current@FreeBSD.ORG Mon Mar 26 17:55:42 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D767106566B for ; Mon, 26 Mar 2012 17:55:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 02D428FC12 for ; Mon, 26 Mar 2012 17:55:42 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 68609B93F; Mon, 26 Mar 2012 13:55:41 -0400 (EDT) From: John Baldwin To: Steve Kargl Date: Mon, 26 Mar 2012 13:53:25 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <20120323222313.GA1331@troutmask.apl.washington.edu> <201203261318.37373.jhb@freebsd.org> <20120326174155.GA1931@troutmask.apl.washington.edu> In-Reply-To: <20120326174155.GA1931@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201203261353.25138.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 26 Mar 2012 13:55:41 -0400 (EDT) Cc: freebsd-current@freebsd.org Subject: Re: general protection fault panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2012 17:55:42 -0000 On Monday, March 26, 2012 1:41:55 pm Steve Kargl wrote: > On Mon, Mar 26, 2012 at 01:18:37PM -0400, John Baldwin wrote: > > On Monday, March 26, 2012 12:21:29 pm Steve Kargl wrote: > > > > You know your APIC ID is 0, so you should be able to find the IRQ for vector > > 51 from here in apic_idt_to_irq(): > > > > irq = lapics[apic_id].la_ioint_irqs[vector - APIC_IO_INTS]; > > > > Your apic_id is 0, and APIC_IO_INTS is 48, so you should be able to do this > > in kgdb: > > > > p lapics[0].la_ioint_irqs[3] > > > > That should give you an index, and intr_lookup_source() just does an array > > lookup. However, I'd be curious to see what the assembly looks like > > (x/10i $rip at this frame). > > > > > (kgdb) p lapics[0].la_ioint_irqs[3] > $1 = 16 > (kgdb) frame 27 > #27 0xffffffff806dc186 in acpi_cpu_c1 () > at /usr/src/sys/amd64/acpica/acpi_machdep.c:97 Sorry, I meant down at the frame that faulted (frame 7 in this case). -- John Baldwin