Ignore:
Timestamp:
Sep 2, 2011, 7:52:30 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
1c963169
Parents:
cae389ba
Message:

2011-09-02 Sebastian Huber <sebastian.huber@…>

  • rtems/score/nios2-utility.h: Avoid redefines with Altera HAL. Declare _Nios2_ISR_Set_level().
  • nios2-context-initialize.c: Use _Nios2_ISR_Set_level().
  • nios2-isr-set-level.c: Define _Nios2_ISR_Set_level().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/nios2/nios2-isr-set-level.c

    rcae389ba r36c187a0  
    2222#include <rtems/score/nios2-utility.h>
    2323
    24 void _CPU_ISR_Set_level( uint32_t new_level )
     24uint32_t _Nios2_ISR_Set_level( uint32_t new_level, uint32_t status )
    2525{
    26   uint32_t status = _Nios2_Get_ctlreg_status();
    27 
    2826  switch ( _Nios2_Get_ISR_status_mask() ) {
    2927    case NIOS2_ISR_STATUS_MASK_IIC:
     
    5149  }
    5250
     51  return status;
     52}
     53
     54void _CPU_ISR_Set_level( uint32_t new_level )
     55{
     56  uint32_t status = _Nios2_Get_ctlreg_status();
     57
     58  status = _Nios2_ISR_Set_level( new_level, status );
     59
    5360  _Nios2_Set_ctlreg_status( status );
    5461}
Note: See TracChangeset for help on using the changeset viewer.