diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/src/exec/score/inline/rtems/score/address.inl | 4 | ||||
-rw-r--r-- | c/src/libmisc/monitor/mon-monitor.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/c/src/exec/score/inline/rtems/score/address.inl b/c/src/exec/score/inline/rtems/score/address.inl index 1a77e617d7..b9a0373aff 100644 --- a/c/src/exec/score/inline/rtems/score/address.inl +++ b/c/src/exec/score/inline/rtems/score/address.inl @@ -90,7 +90,11 @@ RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned ( void *address ) { +#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES) + return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 ); +#else return ( ( (unsigned32)address % CPU_ALIGNMENT ) == 0 ); +#endif } /*PAGE diff --git a/c/src/libmisc/monitor/mon-monitor.c b/c/src/libmisc/monitor/mon-monitor.c index 478e904feb..a531fc003c 100644 --- a/c/src/libmisc/monitor/mon-monitor.c +++ b/c/src/libmisc/monitor/mon-monitor.c @@ -124,7 +124,11 @@ rtems_monitor_command_entry_t rtems_monitor_commands[] = { " symbol [ symbolname [symbolname ... ] ]", 0, rtems_monitor_symbol_cmd, +#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES) + 0, /* XXX find a way to fix the compile time error on h8 */ +#else (unsigned32) &rtems_monitor_symbols, +#endif &rtems_monitor_commands[8], }, { "extension", @@ -209,7 +213,11 @@ rtems_monitor_command_entry_t rtems_monitor_commands[] = { "help [ command [ command ] ]", 0, rtems_monitor_help_cmd, +#if defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES) + 0, /* XXX find a way to fix the compile time error on h8 */ +#else (unsigned32) rtems_monitor_commands, +#endif &rtems_monitor_commands[18], }, #ifdef CPU_INVOKE_DEBUGGER |