-
Couldn't load subscription status.
- Fork 243
Closed
Labels
Description
ATLAS uses the OSAL with RTEMS on the RAD750, and had to use a different RTEMS API to attach interrupts.
Need to research this and either:
A: Incorporate the ATLAS code as-is, or
B: try to update the function to use the new code for all architectures
The ATLAS code:
rtems_status_code ret_status = ~RTEMS_SUCCESSFUL;
uint32 status = OS_ERROR;
#if defined (__PPC__)
/*
* PowerPC uses new-exception which is an extension of clasic irq api */
#include <rtems/irq-extension.h>
const char *info = NULL;
ret_status = rtems_interrupt_handler_install(
(rtems_vector_number)InterruptNumber,
info,
RTEMS_INTERRUPT_SHARED,
(rtems_interrupt_handler)InterruptHandler, (void*)parameter );
#else
rtems_isr_entry old_handler;
ret_status = rtems_interrupt_catch(
(rtems_isr_entry)InterruptHandler,
(rtems_vector_number)InterruptNumber,
&old_handler);
#endif