Changeset 6f6ddc00 in rtems


Ignore:
Timestamp:
Jun 29, 2000, 10:33:05 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
09a6eba
Parents:
a1c1ffc
Message:

Added RTEMS_CPU_HAS_16_BIT_ADDRESSES constant to disable code
that breaks when the target has 16 bit address space. One of the H8
multilibs is a 16-bit address space CPU. When a real attempt is
made to support this CPU model, the code that assumes an address
is 32 bits will have to change. This constant is probably not
flagging all impacted code.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/inline/rtems/score/address.inl

    ra1c1ffc r6f6ddc00  
    9191)
    9292{
     93#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     94    return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 );
     95#else
    9396    return ( ( (unsigned32)address % CPU_ALIGNMENT ) == 0 );
     97#endif
    9498}
    9599
  • c/src/libmisc/monitor/mon-monitor.c

    ra1c1ffc r6f6ddc00  
    125125      0,
    126126      rtems_monitor_symbol_cmd,
     127#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     128      0,    /* XXX find a way to fix the compile time error on h8 */
     129#else
    127130      (unsigned32) &rtems_monitor_symbols,
     131#endif
    128132      &rtems_monitor_commands[8],
    129133    },
     
    210214      0,
    211215      rtems_monitor_help_cmd,
     216#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     217      0,    /* XXX find a way to fix the compile time error on h8 */
     218#else
    212219      (unsigned32) rtems_monitor_commands,
     220#endif
    213221      &rtems_monitor_commands[18],
    214222    },
  • cpukit/libmisc/monitor/mon-monitor.c

    ra1c1ffc r6f6ddc00  
    125125      0,
    126126      rtems_monitor_symbol_cmd,
     127#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     128      0,    /* XXX find a way to fix the compile time error on h8 */
     129#else
    127130      (unsigned32) &rtems_monitor_symbols,
     131#endif
    128132      &rtems_monitor_commands[8],
    129133    },
     
    210214      0,
    211215      rtems_monitor_help_cmd,
     216#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     217      0,    /* XXX find a way to fix the compile time error on h8 */
     218#else
    212219      (unsigned32) rtems_monitor_commands,
     220#endif
    213221      &rtems_monitor_commands[18],
    214222    },
  • cpukit/score/inline/rtems/score/address.inl

    ra1c1ffc r6f6ddc00  
    9191)
    9292{
     93#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
     94    return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 );
     95#else
    9396    return ( ( (unsigned32)address % CPU_ALIGNMENT ) == 0 );
     97#endif
    9498}
    9599
Note: See TracChangeset for help on using the changeset viewer.