Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RTEMS OS_IntAttachHandler for the PPC (GSFC #22161) #71

Closed
skliper opened this issue Sep 30, 2019 · 2 comments
Closed

Update RTEMS OS_IntAttachHandler for the PPC (GSFC #22161) #71

skliper opened this issue Sep 30, 2019 · 2 comments
Labels

Comments

@skliper
Copy link
Contributor

skliper commented Sep 30, 2019

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 
@skliper skliper self-assigned this Sep 30, 2019
@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Imported from trac issue 48. Created by sstrege on 2015-05-14T18:20:34, last modified: 2019-08-14T14:11:46

@skliper
Copy link
Contributor Author

skliper commented Mar 26, 2020

#396 makes this no longer applicable, OS_Int calls deprecated

@skliper skliper closed this as completed Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant