bsps/m68k: removed uses of set_vector()

removed uses of set_vector() accross all the files.
Changes were introduced in all tm27.h and clock.c
files.
This commit is contained in:
Sunil Hegde
2025-07-23 00:17:54 +05:30
committed by Kinsey Moore
parent 47802e7eb3
commit e9cb088995
10 changed files with 75 additions and 10 deletions

View File

@@ -23,7 +23,13 @@
* Attach clock interrupt handler
*/
#define Clock_driver_support_install_isr( _new ) \
set_vector(_new, CLOCK_VECTOR, 1)
rtems_interrupt_handler_install( \
CLOCK_VECTOR, \
"Install clock interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)_new, \
NULL \
);
/*
* Set up the clock hardware

View File

@@ -28,7 +28,14 @@
#define TM27_USE_VECTOR_HANDLER
#define Install_tm27_vector( handler ) set_vector( (handler), 35, 1 )
#define Install_tm27_vector( handler ) \
rtems_interrupt_handler_install( \
35, \
"Install tm27 interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)handler, \
NULL \
);
#define Cause_tm27_intr() asm volatile ("trap #3");

View File

@@ -71,7 +71,13 @@
* Attach clock interrupt handler
*/
#define Clock_driver_support_install_isr( _new ) \
set_vector(_new, CLOCK_IRQ + 64, 1)
rtems_interrupt_handler_install( \
CLOCK_IRQ + 64, \
"Install clock interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)_new, \
NULL \
);
/*
* Set up the clock hardware

View File

@@ -28,7 +28,14 @@
#define TM27_USE_VECTOR_HANDLER
#define Install_tm27_vector( handler ) set_vector( (handler), 35, 1 )
#define Install_tm27_vector( handler ) \
rtems_interrupt_handler_install( \
35, \
"Install tm27 interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)handler, \
NULL \
);
#define Cause_tm27_intr() asm volatile ("trap #3");

View File

@@ -23,7 +23,13 @@
* Attach clock interrupt handler
*/
#define Clock_driver_support_install_isr( _new ) \
set_vector(_new, CLOCK_VECTOR, 1)
rtems_interrupt_handler_install( \
CLOCK_VECTOR, \
"Install clock interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)_new, \
NULL \
);
/*
* Set up the clock hardware

View File

@@ -26,7 +26,14 @@
#define TM27_USE_VECTOR_HANDLER
#define Install_tm27_vector( handler ) set_vector( (handler), 35, 1 )
#define Install_tm27_vector( handler ) \
rtems_interrupt_handler_install( \
35, \
"Install tm27 interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)handler, \
NULL \
);
#define Cause_tm27_intr() asm volatile ("trap #3");

View File

@@ -50,7 +50,13 @@ static void mcf5329_tc_tick(void)
* Attach clock interrupt handler
*/
#define Clock_driver_support_install_isr( _new ) \
set_vector(_new, CLOCK_VECTOR, 1)
rtems_interrupt_handler_install( \
CLOCK_VECTOR, \
"Install clock interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)_new, \
NULL \
);
/*
* Set up the clock hardware

View File

@@ -26,7 +26,14 @@
#define TM27_USE_VECTOR_HANDLER
#define Install_tm27_vector( handler ) set_vector( (handler), 35, 1 )
#define Install_tm27_vector( handler ) \
rtems_interrupt_handler_install( \
35, \
"Install tm27 interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)handler, \
NULL \
);
#define Cause_tm27_intr() asm volatile ("trap #3");

View File

@@ -78,7 +78,13 @@ static void uC5282_tc_tick(void)
* Attach clock interrupt handler
*/
#define Clock_driver_support_install_isr( _new ) \
set_vector(_new, CLOCK_VECTOR, 1)
rtems_interrupt_handler_install( \
CLOCK_VECTOR, \
"Install clock interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)_new, \
NULL \
);
/*
* Set up the clock hardware

View File

@@ -31,7 +31,14 @@
#define TM27_USE_VECTOR_HANDLER
#define Install_tm27_vector( handler ) set_vector( (handler), 35, 1 )
#define Install_tm27_vector( handler ) \
rtems_interrupt_handler_install( \
35, \
"Install tm27 interrupt", \
RTEMS_INTERRUPT_UNIQUE, \
(void *)handler, \
NULL \
);
#define Cause_tm27_intr() asm volatile ("trap #3");