interrupt-allocator: reject vector allocation if its marked as not-implemented. and search to next available

This commit is contained in:
Felipe Neves
2020-11-19 15:14:54 -03:00
committed by morris
parent ec5acf91ee
commit 544a3f7df5
8 changed files with 64 additions and 52 deletions

View File

@@ -122,8 +122,7 @@ static inline void intr_cntrl_ll_enable_int_mask(uint32_t newmask)
*/
static inline void intr_cntrl_ll_edge_int_acknowledge (int intr)
{
intr_cntrl_ll_disable_interrupts(1 << intr);
esprv_intc_int_set_priority(intr, 0);
esprv_intc_set_interrupt_clear(intr);
}
/**
@@ -145,9 +144,6 @@ static inline void intr_cntrl_ll_set_int_level(int intr, int level)
*/
static inline void intr_cntrl_ll_set_int_type(int intr, int_type_t type)
{
/* Not needed currently for xtensa platforms since the type is already set
* in interrupt table
*/
esprv_intc_int_set_type(BIT(intr), type);
}