Changeset fd6d3f1 in rtems


Ignore:
Timestamp:
11/21/16 09:13:37 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
27eccda
Parents:
9f225dea
Message:

nios2: Fix _CPU_ISR_Is_enabled()

Close #2818.

File:
1 edited

Legend:

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

    r9f225dea rfd6d3f1  
    11/*
    2  * Copyright (c) 2011 embedded brains GmbH
     2 * Copyright (c) 2011, 2016 embedded brains GmbH
    33 *
    44 * Copyright (c) 2006 Kolja Waschk (rtemsdev/ixo.de)
     
    2424  switch ( _Nios2_ISR_Get_status_mask() ) {
    2525    case NIOS2_ISR_STATUS_MASK_EIC_IL:
    26       return ((status & NIOS2_STATUS_IL_MASK) >> NIOS2_STATUS_IL_OFFSET) == 0;
     26      return ((level & NIOS2_STATUS_IL_MASK) >> NIOS2_STATUS_IL_OFFSET) == 0;
    2727    case NIOS2_ISR_STATUS_MASK_EIC_RSIE:
    28       return (status & NIOS2_STATUS_RSIE) != 0;
     28      return (level & NIOS2_STATUS_RSIE) != 0;
    2929    default:
    30       return (status & NIOS2_STATUS_PIE) != 0;
     30      return (level & NIOS2_STATUS_PIE) != 0;
    3131  }
    3232}
Note: See TracChangeset for help on using the changeset viewer.