[PATCH 1/1] bsp/pc386: Fix interrupt enable to make debug option work again

Jan Sommer jan.sommer at dlr.de
Tue Feb 25 13:07:35 UTC 2020


---
 bsps/i386/pc386/clock/ckinit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/i386/pc386/clock/ckinit.c b/bsps/i386/pc386/clock/ckinit.c
index 478a37f5d7..2222d6e4b4 100644
--- a/bsps/i386/pc386/clock/ckinit.c
+++ b/bsps/i386/pc386/clock/ckinit.c
@@ -170,7 +170,7 @@ static void clockOn(void)
   outport_byte(TIMER_CNTR0, pc386_clock_click_count >> 8 & 0xff);
   rtems_interrupt_lock_release(&rtems_i386_i8254_access_lock, &lock_context);
 
-  bsp_interrupt_vector_enable( BSP_PERIODIC_TIMER - BSP_IRQ_VECTOR_BASE );
+  bsp_interrupt_vector_enable( BSP_PERIODIC_TIMER );
 
   /*
    * Now calibrate cycles per tick. Do this every time we
-- 
2.12.3



More information about the devel mailing list