Re: [U-Boot] [PATCH v2 14/20] x86: Provide access to the IDT
On 28 April 2015 at 23:23, Bin Meng wrote: > On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: >> Add a function to return the address of the Interrupt Descriptor Table. >> >> Signed-off-by: Simon Glass >> --- >> >> Changes in v2: None >> >> arch/x86/cpu/interrupts.c| 5 + >> arch/x86/include/asm/interrupt.h | 2 ++ >> 2 files changed, 7 insertions(+) >> >> diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c >> index a21d2a6..c777d36 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); >> diff --git a/arch/x86/include/asm/interrupt.h >> b/arch/x86/include/asm/interrupt.h >> index 25abde7..0a75f89 100644 >> --- a/arch/x86/include/asm/interrupt.h >> +++ b/arch/x86/include/asm/interrupt.h >> @@ -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 >> -- > > Reviewed-by: Bin Meng Applied to u-boot-x86. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v2 14/20] x86: Provide access to the IDT
On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > Add a function to return the address of the Interrupt Descriptor Table. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/interrupts.c| 5 + > arch/x86/include/asm/interrupt.h | 2 ++ > 2 files changed, 7 insertions(+) > > diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c > index a21d2a6..c777d36 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); > diff --git a/arch/x86/include/asm/interrupt.h > b/arch/x86/include/asm/interrupt.h > index 25abde7..0a75f89 100644 > --- a/arch/x86/include/asm/interrupt.h > +++ b/arch/x86/include/asm/interrupt.h > @@ -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 > -- Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH v2 14/20] x86: Provide access to the IDT
Add a function to return the address of the Interrupt Descriptor Table. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/interrupts.c| 5 + arch/x86/include/asm/interrupt.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c index a21d2a6..c777d36 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); diff --git a/arch/x86/include/asm/interrupt.h b/arch/x86/include/asm/interrupt.h index 25abde7..0a75f89 100644 --- a/arch/x86/include/asm/interrupt.h +++ b/arch/x86/include/asm/interrupt.h @@ -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 -- 2.2.0.rc0.207.ga3a616c ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot