Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2012 13:53:25 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: general protection fault panic
Message-ID:  <201203261353.25138.jhb@freebsd.org>
In-Reply-To: <20120326174155.GA1931@troutmask.apl.washington.edu>
References:  <20120323222313.GA1331@troutmask.apl.washington.edu> <201203261318.37373.jhb@freebsd.org> <20120326174155.GA1931@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203261353.25138.jhb>