Changeset c38407e in rtems


Ignore:
Timestamp:
Oct 22, 2009, 11:20:44 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 5, master
Children:
fc5799fb
Parents:
0818be5
Message:

2009-10-22 Ralf Corsépius <ralf.corsepius@…>

  • libcsupport/include/rtems/error.h: Use ordinal constants for RTEMS_ERROR_ERRNO, RTEMS_ERROR_PANIC, RTEMS_ERROR_ABORT to avoid implicit constant conversion overflows on 16bit-int targets.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r0818be5 rc38407e  
     12009-10-22      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libcsupport/include/rtems/error.h: Use ordinal constants for
     4        RTEMS_ERROR_ERRNO, RTEMS_ERROR_PANIC, RTEMS_ERROR_ABORT to avoid
     5        implicit constant conversion overflows on 16bit-int targets.
     6
    172009-10-22      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • cpukit/libcsupport/include/rtems/error.h

    r0818be5 rc38407e  
    2424 */
    2525
     26#if 0
     27/* not 16bit-int host clean */
    2628#define RTEMS_ERROR_ERRNO  (1<<((sizeof(rtems_error_code_t) * CHAR_BIT) - 2)) /* hi bit; use 'errno' */
    2729#define RTEMS_ERROR_PANIC  (RTEMS_ERROR_ERRNO / 2)       /* err fatal; no return */
    2830#define RTEMS_ERROR_ABORT  (RTEMS_ERROR_ERRNO / 4)       /* err is fatal; panic */
     31#else
     32#define RTEMS_ERROR_ERRNO  (0x40000000) /* hi bit; use 'errno' */
     33#define RTEMS_ERROR_PANIC  (0x20000000) /* err fatal; no return */
     34#define RTEMS_ERROR_ABORT  (0x10000000) /* err is fatal; panic */
     35#endif
    2936
    3037#define RTEMS_ERROR_MASK  (RTEMS_ERROR_ERRNO | RTEMS_ERROR_ABORT | \
Note: See TracChangeset for help on using the changeset viewer.