void bsp_interrupt_vector_enable(rtems_vector_number vector) { volatile gic_dist *dist = ARM_GIC_DIST; bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector)); gic_id_enable(dist, vector); }
rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector) { rtems_status_code sc = RTEMS_SUCCESSFUL; if (bsp_interrupt_is_valid_vector(vector)) { volatile gic_dist *dist = ARM_GIC_DIST; gic_id_enable(dist, vector); } else { sc = RTEMS_INVALID_ID; } return sc; }