Hi,
I have two “interrupt_id” routines in my callout_interrupt.S file.
One is for a first board release while the second is for the latest
hardware version:
interrupt_id_ver16
interrupt_id_ver24
Also variable i.e. board_ver describes target release.
Now looking at the “board_ver” contents I would like
to do something like this:
if (board_ver == 16) then
interrupt_id_my_intr = interrupt_id_ver16;
else
interrupt_id_my_intr = interrupt_id_ver24;
and then pass interrupt_id_my_intr to the
intrs[] table:
const static struct startup_intrinfo intrs[] = {
…
{ 103, 20, 9, 0, 0, 0,
{ 0, 0, &interrupt_id_my_intr},
{ INTR_GENFLAG_LOAD_INTRMASK, 0, &interrupt_eoi_my_intr},
&interrupt_mask_my_intr,
&interrupt_unmask_my_intr,
0,
},
…
Is it possible ? How can I pass particular interrupt_id
callout to the same startup_intrinfo structure ?
Regards,
Jacek