Skip to content
Snippets Groups Projects
Commit 6f41e0e7 authored by Simon Glass's avatar Simon Glass
Browse files

x86: Provide access to the IDT


Add a function to return the address of the Interrupt Descriptor Table.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 52845296
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -38,4 +38,6 @@ extern char exception_stack[];
*/
void configure_irq_trigger(int int_num, bool is_level_triggered);
void *x86_get_idt(void);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment