mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user