From a0ed800376b0db57428f9bf6401db36789ff1aa6 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 4 Nov 2020 09:57:28 -0700 Subject: x86: Show the interrupt pointer with 'irqinfo' It is useful for this command to show the address of the interrupt table. Add support for this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/lib/interrupts.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/x86/lib/interrupts.c') diff --git a/arch/x86/lib/interrupts.c b/arch/x86/lib/interrupts.c index a81e4291105..ff52959ed28 100644 --- a/arch/x86/lib/interrupts.c +++ b/arch/x86/lib/interrupts.c @@ -131,8 +131,11 @@ void do_irq(int hw_irq) int do_irqinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { #if !CONFIG_IS_ENABLED(X86_64) + struct idt_ptr ptr; int irq; + interrupt_read_idt(&ptr); + printf("IDT at %lx, size %x\n", ptr.address, ptr.size); printf("Spurious IRQ: %u, last unknown IRQ: %d\n", spurious_irq_cnt, spurious_irq); -- cgit v1.2.3