From 578b2b36280b36ed9454b34edb566d4f5eae5a38 Mon Sep 17 00:00:00 2001
From: Jan Sommer <jan.sommer@dlr.de>
Date: Tue, 23 Apr 2019 15:13:15 +0200
Subject: [PATCH] bsp/pc386: Fix interrupt enable to make debug option work
 again

---
 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 afd5d01f1e..2d946d1f33 100644
--- a/bsps/i386/pc386/clock/ckinit.c
+++ b/bsps/i386/pc386/clock/ckinit.c
@@ -162,7 +162,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.17.1

