What is the purpose of set_vector()?
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Nov 9 09:09:23 UTC 2018
Hello,
the set_vector() seems to be a pretty weird function. What is the
purpose of it? It is not clear from the implementations. In particular
set_vector(..., ..., 0) is only used in five spots:
bsps/m68k/csb360/dev/timer.c: set_vector(timerisr, BSP_INTVEC_TMR2, 0);
bsps/m68k/mcf5206elite/dev/timer.c: set_vector(timerisr,
BSP_INTVEC_TIMER2, 0);
bsps/m68k/mvme167/btimer/btimer.c: (void) set_vector( timerisr,
TIMER_VECTOR, 0 );
bsps/m68k/mvme147/btimer/btimer.c: (void) set_vector(timerisr,
TIMER_1_VECTOR, 0); /* install ISR */
bsps/m68k/mvme162/btimer/btimer.c: (void) set_vector( timerisr, VBR0 *
0x10 + 0x8, 0 );
I think in most cases there is a type mismatch of the handler for type 0
and not 0.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list