Ignore:
Timestamp:
Apr 14, 2014, 9:05:04 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
e91ab8c
Parents:
4d58458
git-author:
Joel Sherrill <joel.sherrill@…> (04/14/14 21:05:04)
git-committer:
Joel Sherrill <joel.sherrill@…> (05/30/14 20:07:39)
Message:

Minor conditionals to enable building Scheduler Simulator on GNU/Linux

  • rtems/score/assert.h: Scheduler Simulator uses glibc assert.h on GNU/Linux. This will likely need to be adjusted more for other host compilers and C libraries. Also disable _Assert_Not_reached() because some of these paths do actually return to the called on the Scheduler Simulator.
  • basedefs.h: Do not use noreturn attribute when on Scheduler Simulator. Paths which context switch can return to the command interpreter on the Scheduler Simulator.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/basedefs.h

    r4d58458 r8e7db68c  
    154154 *  rtems_fatal_error_occurred and _Terminate.
    155155 */
    156 #ifdef __GNUC__
     156#if defined(RTEMS_SCHEDSIM)
     157  #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
     158#elif defined(__GNUC__)
    157159  #define RTEMS_COMPILER_NO_RETURN_ATTRIBUTE \
    158160      __attribute__ ((noreturn))
Note: See TracChangeset for help on using the changeset viewer.