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.
This commit is contained in:
Joel Sherrill
2000-06-29 22:33:05 +00:00
parent a1c1ffc93b
commit 6f6ddc0011
4 changed files with 24 additions and 0 deletions

View File

@@ -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

View File

@@ -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