diff options
author | Simon Glass <sjg@chromium.org> | 2015-04-28 20:25:16 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-29 21:02:34 -0600 |
commit | 6f41e0e7bcdc58e9e8af89988043893d5876bf7a (patch) | |
tree | f6247f61341eacb76594b057bca54e16d493126f /arch/x86/cpu/interrupts.c | |
parent | 52845296be8190c3f581090d6336fa033f2bd2d8 (diff) |
x86: Provide access to the IDT
Add a function to return the address of the Interrupt Descriptor Table.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/interrupts.c')
-rw-r--r-- | arch/x86/cpu/interrupts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c index a21d2a6c50..c777d3646f 100644 --- a/arch/x86/cpu/interrupts.c +++ b/arch/x86/cpu/interrupts.c @@ -147,6 +147,11 @@ int cpu_init_interrupts(void) return 0; } +void *x86_get_idt(void) +{ + return &idt_ptr; +} + void __do_irq(int irq) { printf("Unhandled IRQ : %d\n", irq); |