Menu

#1 intq_pram_t.intq_entry

open
nobody
None
5
2007-04-20
2007-04-20
Anonymous
No

Looking in the power quicc II manual, I have seen that the field intq_entry of intq_pram_t is not a pointer to the current entry of the interrupt queue but it is the value of the entry. So I suggest to change the struct in this way:

typedef struct
{
interrupt_table_t* intq_base; /* Base address of interrupt queue */
interrupt_table_t* p_intq; /* Pointer to interrupt queue entry */
ushort int_cnt; /* Interrupt counter */
ushort int_init_cnt; /* Interrupt counter initial value */
interrupt_table_t intq_entry; /* Pointer to interrupt queue entry */
} __attribute__ ((packed)) intq_pram_t;

It is necessary to change the init of dpram (mpc8260sar.c) at line 1117:
dev_data->intq_pram_ptr[j].intq_entry = (interrupt_table_t)dev_data->intq_pram_ptr[0];

Finally in interrupt handler(mpc8260sar.c line 1509).

I hope this can help you, Bye.

(excuse me for my awful english)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB