summaryrefslogblamecommitdiffstats
path: root/cpukit/rtems/src/modes.c
blob: 0bf9575abe1f9e172bf59e0661dc798b5a2cc96b (plain) (tree)
1
2
3
4
5
6
7
8
   
        
  




                                                                              



                            
                                                    
  

                                                           
                                         

   
                    


                   



                              
                                                           
 
                                      
                  



                                      
/**
 * @file
 *
 * @ingroup RTEMSImplClassic
 *
 * @brief This source file contains the implementation of
 *   rtems_interrupt_level_body() and the definition of ::rtems_interrupt_mask
 *   to support languages other than C/C++.
 */

/*
 *  COPYRIGHT (c) 1989-2012.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <rtems/rtems/tasks.h>
#include <rtems/score/stack.h>
#include <rtems/rtems/modes.h>

const uint32_t rtems_interrupt_mask = RTEMS_INTERRUPT_MASK;

rtems_mode rtems_interrupt_level_body(
  uint32_t   level
)
{
  return RTEMS_INTERRUPT_LEVEL(level);
}