Sunil Hegde commented on a discussion on bsps/sparc/shared/start/leontrap.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/447#note_125291

 > + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 > + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 > + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 
 > THE
 > + * POSSIBILITY OF SUCH DAMAGE.
 > + */
 > +
 > +#include <bsp.h>
 > +#include "leon.h"
 > +
 > +void LEON_Clear_and_unmask_interrupt(rtems_vector_number vector)
 > +{
 > +  if (SPARC_IS_INTERRUPT_TRAP(vector)) {
 > +    uint32_t source = SPARC_INTERRUPT_TRAP_TO_SOURCE(vector);
 > +    LEON_Clear_interrupt(source);
 > +    LEON_Unmask_interrupt(source);
 > +  }

ok i will work on using this approach and update the mr asap

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/447#note_125291
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to