diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-04 09:57:28 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-11-06 09:51:29 +0800 |
commit | a0ed800376b0db57428f9bf6401db36789ff1aa6 (patch) | |
tree | 293f5f54b352f72ec856d4bb328602a3c0fa9dd3 /arch/x86/lib/interrupts.c | |
parent | 8bcfb7917a61ef8230d85b6efc5a272fd20637ff (diff) |
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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/interrupts.c')
-rw-r--r-- | arch/x86/lib/interrupts.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/lib/interrupts.c b/arch/x86/lib/interrupts.c index a81e429110..ff52959ed2 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); |