Changeset 3ad7602e in rtems
- Timestamp:
- 12/20/99 15:21:31 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8b91282
- Parents:
- 947c27aa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/tmtests/tm20/task1.c
r947c27aa r3ad7602e 13 13 #define TEST_INIT 14 14 #include "system.h" 15 #include <assert.h> 15 16 16 17 rtems_device_major_number _STUB_major = 1; … … 20 21 rtems_unsigned8 Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT; 21 22 23 #define PARTITION_SIZE 2048 24 #define PARTITION_ELEMENT_SIZE 128 25 #define PARTITION_BUFFER_POINTERS \ 26 ((PARTITION_SIZE / PARTITION_ELEMENT_SIZE) + 2) 27 22 28 rtems_id Partition_id; 23 29 rtems_name Partition_name; 24 rtems_unsigned8 Partition_area[ 2048] CPU_STRUCTURE_ALIGNMENT;25 26 void 27 void 28 void 29 void 30 rtems_unsigned8 Partition_area[ PARTITION_SIZE ] CPU_STRUCTURE_ALIGNMENT; 31 32 void *Buffer_address_1; 33 void *Buffer_address_2; 34 void *Buffer_address_3; 35 void *Buffer_address_4; 30 36 31 37 rtems_unsigned32 buffer_count; 32 38 33 void *Buffer_addresses[ OPERATION_COUNT+1];39 void *Buffer_addresses[ PARTITION_BUFFER_POINTERS ]; 34 40 35 41 rtems_task Task_1( … … 96 102 Partition_name, 97 103 Partition_area, 98 2048,104 PARTITION_SIZE, 99 105 128, 100 106 RTEMS_DEFAULT_ATTRIBUTES, … … 155 161 156 162 buffer_count++; 163 164 assert( buffer_count < PARTITION_BUFFER_POINTERS ); 157 165 } 158 166 … … 210 218 &Buffer_address_2 211 219 ); 212 directive_failed( status, "region_get_se mgent" );220 directive_failed( status, "region_get_segment" ); 213 221 214 222 Timer_initialize(); -
testsuites/tmtests/tm20/task1.c
r947c27aa r3ad7602e 13 13 #define TEST_INIT 14 14 #include "system.h" 15 #include <assert.h> 15 16 16 17 rtems_device_major_number _STUB_major = 1; … … 20 21 rtems_unsigned8 Region_area[ 2048 ] CPU_STRUCTURE_ALIGNMENT; 21 22 23 #define PARTITION_SIZE 2048 24 #define PARTITION_ELEMENT_SIZE 128 25 #define PARTITION_BUFFER_POINTERS \ 26 ((PARTITION_SIZE / PARTITION_ELEMENT_SIZE) + 2) 27 22 28 rtems_id Partition_id; 23 29 rtems_name Partition_name; 24 rtems_unsigned8 Partition_area[ 2048] CPU_STRUCTURE_ALIGNMENT;25 26 void 27 void 28 void 29 void 30 rtems_unsigned8 Partition_area[ PARTITION_SIZE ] CPU_STRUCTURE_ALIGNMENT; 31 32 void *Buffer_address_1; 33 void *Buffer_address_2; 34 void *Buffer_address_3; 35 void *Buffer_address_4; 30 36 31 37 rtems_unsigned32 buffer_count; 32 38 33 void *Buffer_addresses[ OPERATION_COUNT+1];39 void *Buffer_addresses[ PARTITION_BUFFER_POINTERS ]; 34 40 35 41 rtems_task Task_1( … … 96 102 Partition_name, 97 103 Partition_area, 98 2048,104 PARTITION_SIZE, 99 105 128, 100 106 RTEMS_DEFAULT_ATTRIBUTES, … … 155 161 156 162 buffer_count++; 163 164 assert( buffer_count < PARTITION_BUFFER_POINTERS ); 157 165 } 158 166 … … 210 218 &Buffer_address_2 211 219 ); 212 directive_failed( status, "region_get_se mgent" );220 directive_failed( status, "region_get_segment" ); 213 221 214 222 Timer_initialize();
Note: See TracChangeset
for help on using the changeset viewer.