Added ifdef on C4x to avoid invalid address alignment checks since there

is no such thing on the C4x.
This commit is contained in:
Joel Sherrill
2000-07-26 20:44:11 +00:00
parent ca7858bb88
commit 8c3c1763f0
6 changed files with 56 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ void Screen9()
);
puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED" );
#else
status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
fatal_directive_status(
status,
@@ -43,7 +46,11 @@ void Screen9()
"rtems_interrupt_catch with invalid handler"
);
puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
#endif
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_interrupt_catch( Service_routine, 3, NULL );
fatal_directive_status(
status,
@@ -51,6 +58,7 @@ void Screen9()
"rtems_interrupt_catch with invalid old isr pointer"
);
puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
#endif
status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
fatal_directive_status(
@@ -82,6 +90,9 @@ void Screen9()
);
puts( "TA1 - rtems_port_create - RTEMS_INVALID_NAME" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_port_create(
Port_name[ 1 ],
&((char *)Internal_port_area)[ 1 ],
@@ -95,6 +106,7 @@ void Screen9()
"rtems_port_create with illegal address"
);
puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS" );
#endif
status = rtems_port_create(
Port_name[ 1 ],

View File

@@ -109,6 +109,9 @@ void Screen11()
#endif
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_partition_create(
Partition_name[ 1 ],
Partition_bad_area,
@@ -123,7 +126,11 @@ void Screen11()
"rtems_partition_create with bad address"
);
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS" );
#endif
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE - SKIPPED" );
#else
status = rtems_partition_create(
Partition_name[ 1 ],
Partition_good_area,
@@ -138,6 +145,7 @@ void Screen11()
"rtems_partition_create with unaligned buffer_size"
);
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE" );
#endif
status = rtems_partition_delete( 100 );
fatal_directive_status(

View File

@@ -43,6 +43,9 @@ void Screen12()
);
puts( "TA1 - rtems_region_create - RTEMS_INVALID_NAME" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_region_create(
Region_name[ 1 ],
Region_bad_area,
@@ -57,7 +60,11 @@ void Screen12()
"rtems_region_create with illegal address"
);
puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" );
#endif
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE - SKIPPED" );
#else
status = rtems_region_create(
Region_name[ 1 ],
Region_good_area,
@@ -72,6 +79,7 @@ void Screen12()
"rtems_region_create with illegal size"
);
puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE" );
#endif
status = rtems_region_create(
Region_name[ 1 ],

View File

@@ -36,6 +36,9 @@ void Screen9()
);
puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED" );
#else
status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
fatal_directive_status(
status,
@@ -43,7 +46,11 @@ void Screen9()
"rtems_interrupt_catch with invalid handler"
);
puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
#endif
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_interrupt_catch( Service_routine, 3, NULL );
fatal_directive_status(
status,
@@ -51,6 +58,7 @@ void Screen9()
"rtems_interrupt_catch with invalid old isr pointer"
);
puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
#endif
status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
fatal_directive_status(
@@ -82,6 +90,9 @@ void Screen9()
);
puts( "TA1 - rtems_port_create - RTEMS_INVALID_NAME" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_port_create(
Port_name[ 1 ],
&((char *)Internal_port_area)[ 1 ],
@@ -95,6 +106,7 @@ void Screen9()
"rtems_port_create with illegal address"
);
puts( "TA1 - rtems_port_create - RTEMS_INVALID_ADDRESS" );
#endif
status = rtems_port_create(
Port_name[ 1 ],

View File

@@ -109,6 +109,9 @@ void Screen11()
#endif
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_partition_create(
Partition_name[ 1 ],
Partition_bad_area,
@@ -123,7 +126,11 @@ void Screen11()
"rtems_partition_create with bad address"
);
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS" );
#endif
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE - SKIPPED" );
#else
status = rtems_partition_create(
Partition_name[ 1 ],
Partition_good_area,
@@ -138,6 +145,7 @@ void Screen11()
"rtems_partition_create with unaligned buffer_size"
);
puts( "TA1 - rtems_partition_create - RTEMS_INVALID_SIZE" );
#endif
status = rtems_partition_delete( 100 );
fatal_directive_status(

View File

@@ -43,6 +43,9 @@ void Screen12()
);
puts( "TA1 - rtems_region_create - RTEMS_INVALID_NAME" );
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS - SKIPPED" );
#else
status = rtems_region_create(
Region_name[ 1 ],
Region_bad_area,
@@ -57,7 +60,11 @@ void Screen12()
"rtems_region_create with illegal address"
);
puts( "TA1 - rtems_region_create - RTEMS_INVALID_ADDRESS" );
#endif
#if defined(_C3x) || defined(_C4x)
puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE - SKIPPED" );
#else
status = rtems_region_create(
Region_name[ 1 ],
Region_good_area,
@@ -72,6 +79,7 @@ void Screen12()
"rtems_region_create with illegal size"
);
puts( "TA1 - rtems_region_create - RTEMS_INVALID_SIZE" );
#endif
status = rtems_region_create(
Region_name[ 1 ],