mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
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>
This commit is contained in:
parent
52845296be
commit
6f41e0e7bc
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue