Changeset d5154d0f in rtems
- Timestamp:
- 12/23/15 20:44:02 (8 years ago)
- Branches:
- 5, master
- Children:
- 2268ee6
- Parents:
- a48b7c44
- git-author:
- Aun-Ali Zaidi <admin@…> (12/23/15 20:44:02)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (12/24/15 22:52:34)
- Files:
-
- 32 deleted
- 96 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ada-tests/ada_mvscn
ra48b7c44 rd5154d0f 12 12 ./sptests/sp19/sp19.scn 13 13 ./sptests/sp09/sp09.scn 14 ./sptests/sp07/sp07.scn15 14 ./sptests/sp12/sp12.scn 16 15 ./sptests/sp14/sp14.scn -
c/src/ada-tests/configure.ac
ra48b7c44 rd5154d0f 118 118 mptests/mp01/node1/Makefile 119 119 mptests/mp01/node2/Makefile 120 mptests/mp02/Makefile121 mptests/mp02/node1/Makefile122 mptests/mp02/node2/Makefile123 120 mptests/mp03/Makefile 124 121 mptests/mp03/node1/Makefile -
c/src/ada-tests/mptests/Makefile.am
ra48b7c44 rd5154d0f 1 1 SUBDIRS = 2 2 SUBDIRS += mp01 3 SUBDIRS += mp024 3 SUBDIRS += mp03 5 4 SUBDIRS += mp04 -
c/src/ada-tests/sptests/sp07/ada_sp07.scn
ra48b7c44 rd5154d0f 9 9 TASKS_START - TA4 - started. 10 10 TASKS_RESTART - TA3 - restarted. 11 INIT - task_set_note - set TA1's NOTEPAD_8 to TA1's initial priority: 412 INIT - task_set_note - set TA2's NOTEPAD_8 to TA2's initial priority: 413 11 <pause> 14 12 TA1 - task_set_priority - get initial priority of self: 4 15 TA1 - task_get_note - get NOTEPAD_8 - current priority: 416 TA1 - task_set_note - set TA2's NOTEPAD_8: 317 13 TA1 - task_set_priority - set TA2's priority: 3 18 TA2 - task_get_note - get NOTEPAD_8 - current priority: 319 TA2 - task_set_note - set TA1's NOTEPAD_8: 220 14 TA2 - task_set_priority - set TA1's priority: 2 21 TA1 - task_get_note - get NOTEPAD_8 - current priority: 222 TA1 - task_set_note - set TA2's NOTEPAD_8: 123 15 TA1 - task_set_priority - set TA2's priority: 1 24 TA2 - task_get_note - get NOTEPAD_8 - current priority: 125 16 TA2 - task_suspend - suspend TA1 26 17 TA2 - task_set_priority - set priority of TA1 ( blocked ) -
c/src/ada-tests/sptests/sp07/sptest.adb
ra48b7c44 rd5154d0f 230 230 Flush_Task_Event_Log; 231 231 232 RTEMS.TASKS.SET_NOTE( SPTEST.TASK_ID( 1 ), 8, 4, STATUS );233 TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_SET_NOTE OF TA1" );234 TEXT_IO.PUT( "INIT - task_set_note - set TA1's NOTEPAD_8" );235 TEXT_IO.PUT_LINE( " to TA1's initial priority: 4" );236 237 RTEMS.TASKS.SET_NOTE( SPTEST.TASK_ID( 2 ), 8, 4, STATUS );238 TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_SET_NOTE OF TA2" );239 TEXT_IO.PUT( "INIT - task_set_note - set TA2's NOTEPAD_8" );240 TEXT_IO.PUT_LINE( " to TA2's initial priority: 4" );241 242 232 RTEMS.TASKS.DELETE( RTEMS.SELF, STATUS ); 243 233 TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_DELETE OF SELF" ); … … 273 263 274 264 loop 275 276 RTEMS.TASKS.GET_NOTE( RTEMS.SELF, 8, THE_PRIORITY, STATUS );277 TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_GET_NOTE" );278 TEXT_IO.PUT( "TA1 - task_get_note - ");279 TEXT_IO.PUT( "get NOTEPAD_8 - current priority: " );280 UNSIGNED32_IO.PUT( THE_PRIORITY, BASE => 10, WIDTH => 2 );281 TEXT_IO.NEW_LINE;282 265 283 266 THE_PRIORITY := THE_PRIORITY - 1; … … 305 288 306 289 end if; 307 308 TEXT_IO.PUT( "TA1 - task_set_note - set TA2's NOTEPAD_8: " );309 UNSIGNED32_IO.PUT( THE_PRIORITY, BASE => 10, WIDTH => 2 );310 TEXT_IO.NEW_LINE;311 RTEMS.TASKS.SET_NOTE(312 SPTEST.TASK_ID( 2 ),313 8,314 THE_PRIORITY,315 STATUS316 );317 TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_SET_NOTE" );318 290 319 291 TEXT_IO.PUT("TA1 - task_set_priority - set TA2's priority: "); … … 347 319 loop 348 320 349 RTEMS.TASKS.GET_NOTE( RTEMS.SELF, 8, THE_PRIORITY, STATUS );350 TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_GET_NOTE" );351 TEXT_IO.PUT( "TA2 - task_get_note - ");352 TEXT_IO.PUT( "get NOTEPAD_8 - current priority: " );353 UNSIGNED32_IO.PUT( THE_PRIORITY, BASE => 10, WIDTH => 2 );354 TEXT_IO.NEW_LINE;355 356 321 THE_PRIORITY := THE_PRIORITY - 1; 357 322 … … 387 352 388 353 else 389 390 TEXT_IO.PUT( "TA2 - task_set_note - set TA1's NOTEPAD_8: " );391 UNSIGNED32_IO.PUT( THE_PRIORITY, BASE => 10, WIDTH => 2 );392 TEXT_IO.NEW_LINE;393 RTEMS.TASKS.SET_NOTE(394 SPTEST.TASK_ID( 1 ),395 8,396 THE_PRIORITY,397 STATUS398 );399 TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_SET_NOTE" );400 354 401 355 TEXT_IO.PUT( "TA2 - task_set_priority - "); -
c/src/ada-tests/sptests/sp09/ada_sp09.scn
ra48b7c44 rd5154d0f 3 3 INIT - task_restart - INCORRECT_STATE 4 4 TA1 - task_delete - INVALID_ID 5 TA1 - task_get_note - INVALID_NUMBER6 TA1 - task_get_note - INVALID_ID7 5 TA1 - task_ident - current task SUCCESSFUL 8 6 TA1 - task_ident - global INVALID_NAME … … 14 12 TA1 - task_set_priority - INVALID_PRIORITY 15 13 TA1 - task_set_priority - INVALID_ID 16 TA1 - task_set_note - INVALID_NUMBER17 TA1 - task_set_note - INVALID_ID18 14 TA1 - task_start - INVALID_ID 19 15 TA1 - task_start - INCORRECT_STATE -
c/src/ada-tests/sptests/sp09/sptest.adb
ra48b7c44 rd5154d0f 149 149 procedure SCREEN_1 150 150 is 151 NOTEPAD_VALUE : RTEMS.UNSIGNED32 := 0;152 151 SELF_ID : RTEMS.ID; 153 152 PREVIOUS_PRIORITY : RTEMS.TASKS.PRIORITY; … … 162 161 ); 163 162 TEXT_IO.PUT_LINE( "TA1 - task_delete - INVALID_ID" ); 164 165 begin166 RTEMS.TASKS.GET_NOTE( RTEMS.SELF,167 RTEMS.NOTEPAD_INDEX'LAST + 10,168 NOTEPAD_VALUE,169 STATUS170 );171 TEST_SUPPORT.FATAL_DIRECTIVE_STATUS(172 STATUS,173 RTEMS.INVALID_NUMBER,174 "TASK_GET_NOTE WITH ILLEGAL NOTEPAD"175 );176 TEXT_IO.PUT_LINE( "TA1 - task_get_note - INVALID_NUMBER" );177 exception178 when others =>179 TEXT_IO.PUT_LINE(180 "TA1 - task_get_note - INVALID_NUMBER -- constraint error"181 );182 end;183 184 RTEMS.TASKS.GET_NOTE(185 100,186 RTEMS.NOTEPAD_INDEX'LAST,187 NOTEPAD_VALUE,188 STATUS189 );190 TEST_SUPPORT.FATAL_DIRECTIVE_STATUS(191 STATUS,192 RTEMS.INVALID_ID,193 "TASK_GET_NOTE WITH ILLEGAL ID"194 );195 TEXT_IO.PUT_LINE( "TA1 - task_get_note - INVALID_ID" );196 163 197 164 RTEMS.TASKS.IDENT( … … 295 262 ); 296 263 TEXT_IO.PUT_LINE( "TA1 - task_set_priority - INVALID_ID" ); 297 298 begin299 RTEMS.TASKS.SET_NOTE( RTEMS.SELF,300 RTEMS.NOTEPAD_INDEX'LAST + 10,301 NOTEPAD_VALUE,302 STATUS303 );304 TEST_SUPPORT.FATAL_DIRECTIVE_STATUS(305 STATUS,306 RTEMS.INVALID_NUMBER,307 "TASK_SET_NOTE WITH ILLEGAL NOTEPAD"308 );309 TEXT_IO.PUT_LINE( "TA1 - task_set_note - INVALID_NUMBER" );310 exception311 when others =>312 TEXT_IO.PUT_LINE(313 "TA1 - task_set_note - INVALID_NUMBER -- constraint error"314 );315 end;316 317 RTEMS.TASKS.SET_NOTE(318 100,319 RTEMS.NOTEPAD_INDEX'LAST,320 NOTEPAD_VALUE,321 STATUS322 );323 TEST_SUPPORT.FATAL_DIRECTIVE_STATUS(324 STATUS,325 RTEMS.INVALID_ID,326 "TASK_SET_NOTE WITH ILLEGAL ID"327 );328 TEXT_IO.PUT_LINE( "TA1 - task_set_note - INVALID_ID" );329 264 330 265 RTEMS.TASKS.START( 100, SPTEST.TASK_1'ACCESS, 0, STATUS ); -
c/src/ada-tests/support/init.c
ra48b7c44 rd5154d0f 48 48 ) 49 49 { 50 return tcb->Object.id; /* Only for sp04 and sp07*/50 return tcb->Object.id; /* Only for sp04 */ 51 51 } 52 52 -
c/src/ada-tests/tmtests/tm08/tmtest.adb
ra48b7c44 rd5154d0f 100 100 OLD_PRIORITY : RTEMS.TASKS.PRIORITY; 101 101 OLD_MODE : RTEMS.MODE; 102 OLD_NOTE : RTEMS.NOTEPAD_INDEX;103 102 TIME : RTEMS.TIME_OF_DAY; 104 103 STATUS : RTEMS.STATUS_CODES; … … 234 233 ); 235 234 236 TIMER_DRIVER.INITIALIZE;237 for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT238 loop239 RTEMS.TASKS.SET_NOTE(240 TMTEST.TASK_ID,241 8,242 10,243 STATUS244 );245 end loop;246 TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;247 TIME_TEST_SUPPORT.PUT_TIME(248 "TASK_SET_NOTE ",249 TMTEST.END_TIME,250 TIME_TEST_SUPPORT.OPERATION_COUNT,251 OVERHEAD,252 RTEMS_CALLING_OVERHEAD.TASK_SET_NOTE253 );254 255 TIMER_DRIVER.INITIALIZE;256 for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT257 loop258 RTEMS.TASKS.GET_NOTE(259 TMTEST.TASK_ID,260 8,261 OLD_NOTE,262 STATUS263 );264 end loop;265 TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;266 TIME_TEST_SUPPORT.PUT_TIME(267 "TASK_GET_NOTE ",268 TMTEST.END_TIME,269 TIME_TEST_SUPPORT.OPERATION_COUNT,270 OVERHEAD,271 RTEMS_CALLING_OVERHEAD.TASK_GET_NOTE272 );273 274 235 TIME := (1988, 1, 1, 0, 0, 0, 0 ); 275 236 -
c/src/ada-tests/tmtests/tm08/tmtest.ads
ra48b7c44 rd5154d0f 70 70 -- + TASK_MODE which does require a reschedule 71 71 -- + TASK_MODE which causes a preemption *** TEST_TASK1 executes 72 -- + TASK_SET_NOTE73 -- + TASK_GET_NOTE74 72 -- + CLOCK_SET 75 73 -- + CLOCK_GET -
c/src/ada-tests/tmtests/tmoverhd/dummy_rtems.adb
ra48b7c44 rd5154d0f 151 151 end TASK_MODE; 152 152 153 procedure TASK_GET_NOTE (154 ID : in RTEMS.ID;155 NOTEPAD : in RTEMS.NOTEPAD_INDEX;156 NOTE : out RTEMS.UNSIGNED32;157 RESULT : out RTEMS.STATUS_CODES158 ) is159 pragma Unreferenced(ID);160 pragma Unreferenced(NOTEPAD);161 begin162 163 NOTE := 0;164 RESULT := RTEMS.SUCCESSFUL;165 166 end TASK_GET_NOTE;167 168 procedure TASK_SET_NOTE (169 ID : in RTEMS.ID;170 NOTEPAD : in RTEMS.NOTEPAD_INDEX;171 NOTE : in RTEMS.UNSIGNED32;172 RESULT : out RTEMS.STATUS_CODES173 ) is174 pragma Unreferenced(ID);175 pragma Unreferenced(NOTEPAD);176 pragma Unreferenced(NOTE);177 begin178 179 RESULT := RTEMS.SUCCESSFUL;180 181 end TASK_SET_NOTE;182 183 153 procedure TASK_WAKE_WHEN ( 184 154 TIME_BUFFER : in RTEMS.TIME_OF_DAY; -
c/src/ada-tests/tmtests/tmoverhd/dummy_rtems.ads
ra48b7c44 rd5154d0f 88 88 ); 89 89 90 procedure TASK_GET_NOTE (91 ID : in RTEMS.ID;92 NOTEPAD : in RTEMS.NOTEPAD_INDEX;93 NOTE : out RTEMS.UNSIGNED32;94 RESULT : out RTEMS.STATUS_CODES95 );96 97 procedure TASK_SET_NOTE (98 ID : in RTEMS.ID;99 NOTEPAD : in RTEMS.NOTEPAD_INDEX;100 NOTE : in RTEMS.UNSIGNED32;101 RESULT : out RTEMS.STATUS_CODES102 );103 104 90 procedure TASK_WAKE_WHEN ( 105 91 TIME_BUFFER : in RTEMS.TIME_OF_DAY; -
c/src/ada-tests/tmtests/tmoverhd/tmtest.adb
ra48b7c44 rd5154d0f 131 131 MASK : RTEMS.MODE; 132 132 OUT_MODE : RTEMS.MODE; 133 NOTE : RTEMS.UNSIGNED32;134 133 TIME : RTEMS.TIME_OF_DAY; 135 134 TIMEOUT : RTEMS.INTERVAL; … … 332 331 ); 333 332 334 -- TASK_GET_NOTE335 336 TIMER_DRIVER.INITIALIZE;337 for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT338 loop339 DUMMY_RTEMS.TASK_GET_NOTE( ID, 1, NOTE, STATUS );340 end loop;341 TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;342 343 TIME_TEST_SUPPORT.PUT_TIME(344 "TASK_GET_NOTE",345 TMTEST.END_TIME,346 TIME_TEST_SUPPORT.OPERATION_COUNT,347 OVERHEAD,348 0349 );350 351 -- TASK_SET_NOTE352 353 TIMER_DRIVER.INITIALIZE;354 for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT355 loop356 DUMMY_RTEMS.TASK_SET_NOTE( ID, 1, NOTE, STATUS );357 end loop;358 TMTEST.END_TIME := TIMER_DRIVER.READ_TIMER;359 360 TIME_TEST_SUPPORT.PUT_TIME(361 "TASK_SET_NOTE",362 TMTEST.END_TIME,363 TIME_TEST_SUPPORT.OPERATION_COUNT,364 OVERHEAD,365 0366 );367 368 333 -- TASK_WAKE_WHEN 369 334 -
c/src/ada/rtems-tasks.adb
ra48b7c44 rd5154d0f 204 204 end Mode; 205 205 206 procedure Get_Note207 (ID : in RTEMS.ID;208 Notepad : in RTEMS.Notepad_Index;209 Note : out RTEMS.Unsigned32;210 Result : out RTEMS.Status_Codes)211 is212 function Get_Note_Base213 (ID : RTEMS.ID;214 Notepad : RTEMS.Notepad_Index;215 Note : access RTEMS.Unsigned32)216 return RTEMS.Status_Codes;217 pragma Import (C, Get_Note_Base, "rtems_task_get_note");218 Note_Base : aliased RTEMS.Unsigned32;219 begin220 221 Result := Get_Note_Base (ID, Notepad, Note_Base'Access);222 Note := Note_Base;223 224 end Get_Note;225 226 procedure Set_Note227 (ID : in RTEMS.ID;228 Notepad : in RTEMS.Notepad_Index;229 Note : in RTEMS.Unsigned32;230 Result : out RTEMS.Status_Codes)231 is232 function Set_Note_Base233 (ID : RTEMS.ID;234 Notepad : RTEMS.Notepad_Index;235 Note : RTEMS.Unsigned32)236 return RTEMS.Status_Codes;237 pragma Import (C, Set_Note_Base, "rtems_task_set_note");238 begin239 240 Result := Set_Note_Base (ID, Notepad, Note);241 242 end Set_Note;243 244 206 procedure Variable_Add 245 207 (ID : in RTEMS.ID; -
c/src/lib/libbsp/arm/csb336/times
ra48b7c44 rd5154d0f 56 56 8 rtems_task_mode: reschedule -- returns to caller 3 57 57 8 rtems_task_mode: reschedule -- preempts caller 13 58 8 rtems_task_set_note 159 8 rtems_task_get_note 160 58 8 rtems_clock_set 4 61 59 8 rtems_clock_get 0 -
c/src/lib/libbsp/arm/csb337/times
ra48b7c44 rd5154d0f 55 55 8 rtems_task_mode: reschedule -- returns to caller 12110 11764 6055 56 56 8 rtems_task_mode: reschedule -- preempts caller 33043 34773 18338 57 8 rtems_task_set_note 11869 11871 435658 8 rtems_task_get_note 12092 12087 439759 57 8 rtems_clock_set 33141 33145 10160 60 58 8 rtems_clock_get 2920 2921 811 -
c/src/lib/libbsp/arm/edb7312/times
ra48b7c44 rd5154d0f 55 55 rtems_task_mode: reschedule -- returns to caller 15 56 56 rtems_task_mode: reschedule -- preempts caller 52 57 rtems_task_set_note 458 rtems_task_get_note 459 57 rtems_clock_set 14 60 58 rtems_clock_get 1 … … 187 185 rtems_rate_monotonic_delete: active 21 188 186 rtems_rate_monotonic_period: conclude periods -- caller blocks 23 189 -
c/src/lib/libbsp/bfin/TLL6527M/times
ra48b7c44 rd5154d0f 36 36 *** END OF TEST 6 *** 37 37 38 38 39 *** TIME TEST 7 *** 39 40 41 *** TIME TEST 8 ***42 rtems_task_set_priority: obtain current priorityrtems_task_mode: reschedule -- preempts caller 043 rtems_task_set_priority: returns to caller 244 rtems_task_mode: obtain current mode101 045 rtems_task_mode: no reschedule 046 rtems_task_mode: reschedule -- returns to caller47 248 rtems_task_set_note 149 rtems_task_get_note 050 rtems_clock_set 251 rtems_clock_get_tod 1252 *** END OF TEST 8 ***53 54 40 55 41 *** TIME TEST 9 *** … … 174 160 *** END OF TEST 29 *** 175 161 176 -
c/src/lib/libbsp/bfin/eZKit533/times
ra48b7c44 rd5154d0f 55 55 rtems_task_mode: reschedule -- returns to caller NC 8 8 56 56 rtems_task_mode: reschedule -- preempts caller NC 31 30 57 rtems_task_set_note NC 8 858 rtems_task_get_note NC 9 859 57 rtems_clock_set NC 25 25 60 58 rtems_clock_get NC 2 2 -
c/src/lib/libbsp/i386/pc386/times_i486dx
ra48b7c44 rd5154d0f 54 54 rtems_task_mode: reschedule -- returns to caller 20 17 55 55 rtems_task_mode: reschedule -- preempts caller 39 37 56 rtems_task_set_note 7 557 rtems_task_get_note 7 558 56 rtems_clock_set 17 16 59 57 rtems_clock_get 2 1 -
c/src/lib/libbsp/i386/pc386/times_p5
ra48b7c44 rd5154d0f 59 59 rtems_task_mode: reschedule -- returns to caller 264 60 60 rtems_task_mode: reschedule -- preempts caller 836 61 rtems_task_set_note 23662 rtems_task_get_note 23263 61 rtems_clock_set 569 64 62 rtems_clock_get 107 -
c/src/lib/libbsp/m68k/av5282/README
ra48b7c44 rd5154d0f 176 176 rtems_task_restart: suspended task -- preempts caller 68 177 177 *** END OF TEST 7 *** 178 179 *** TIME TEST 8 ***180 rtems_task_set_priority: obtain current priority 9181 rtems_task_set_priority: returns to caller 21182 rtems_task_mode: obtain current mode 4183 rtems_task_mode: no reschedule 4184 rtems_task_mode: reschedule -- returns to caller 13185 rtems_task_mode: reschedule -- preempts caller 35186 rtems_task_set_note 7187 rtems_task_get_note 9188 rtems_clock_set 30189 rtems_clock_get 0190 *** END OF TEST 8 ***191 178 192 179 *** TIME TEST 9 *** … … 387 374 rtems_task_set_priority 0 388 375 rtems_task_mode 0 389 rtems_task_get_note 0390 rtems_task_set_note 0391 376 rtems_task_wake_when 1 392 377 rtems_task_wake_after 0 -
c/src/lib/libbsp/m68k/csb360/times
ra48b7c44 rd5154d0f 52 52 8 rtems_task_mode: reschedule -- returns to caller 13 53 53 8 rtems_task_mode: reschedule -- preempts caller 35 54 8 rtems_task_set_note 1255 8 rtems_task_get_note 1356 54 8 rtems_clock_set 32 57 55 8 rtems_clock_get 3 -
c/src/lib/libbsp/m68k/gen68302/times
ra48b7c44 rd5154d0f 56 56 rtems_task_mode: reschedule -- returns to caller 8 57 57 rtems_task_mode: reschedule -- preempts caller 39 58 rtems_task_set_note 1359 rtems_task_get_note 1360 58 rtems_clock_set 33 61 59 rtems_clock_get 3 -
c/src/lib/libbsp/m68k/gen68360/README
ra48b7c44 rd5154d0f 136 136 rtems_task_mode: reschedule -- returns to caller 20 137 137 rtems_task_mode: reschedule -- preempts caller 67 138 rtems_task_get_note 28139 rtems_task_set_note 27140 138 rtems_task_wake_after: yield -- returns to caller 16 141 139 rtems_task_wake_after: yields -- preempts caller 65 -
c/src/lib/libbsp/m68k/idp/times
ra48b7c44 rd5154d0f 56 56 rtems_task_mode: reschedule -- returns to caller 8 57 57 rtems_task_mode: reschedule -- preempts caller 39 58 rtems_task_set_note 1359 rtems_task_get_note 1360 58 rtems_clock_set 33 61 59 rtems_clock_get 3 -
c/src/lib/libbsp/m68k/mcf5206elite/times
ra48b7c44 rd5154d0f 31 31 rtems_task_mode: reschedule -- returns to caller 11 32 32 rtems_task_mode: reschedule -- preempts caller 27 33 rtems_task_set_note 934 rtems_task_get_note 1035 33 rtems_task_set_priority: preempts caller 36 36 34 rtems_task_delete: calling task 92 -
c/src/lib/libbsp/m68k/mcf52235/README
ra48b7c44 rd5154d0f 27 27 following: 28 28 29 #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS30 29 #define CONFIGURE_INIT_TASK_STACK_SIZE x 31 30 #define CONFIGURE_MINIMUM_TASK_STACK_SIZE x … … 89 88 rtems_task_set_priority 0 90 89 rtems_task_mode 0 91 rtems_task_get_note 092 rtems_task_set_note 093 90 rtems_task_wake_when 0 94 91 rtems_task_wake_after 0 -
c/src/lib/libbsp/m68k/mcf5225x/README
ra48b7c44 rd5154d0f 30 30 following: 31 31 32 #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS33 #define CONFIGURE_DISABLE_CLASSIC_NOTEPADS34 32 #define CONFIGURE_INIT_TASK_STACK_SIZE x 35 33 #define CONFIGURE_MINIMUM_TASK_STACK_SIZE x … … 93 91 rtems_task_set_priority 0 94 92 rtems_task_mode 0 95 rtems_task_get_note 096 rtems_task_set_note 097 93 rtems_task_wake_when 0 98 94 rtems_task_wake_after 0 -
c/src/lib/libbsp/m68k/mcf5235/README
ra48b7c44 rd5154d0f 182 182 rtems_task_restart: suspended task -- preempts caller 22 183 183 *** END OF TEST 7 *** 184 185 *** TIME TEST 8 ***186 rtems_task_set_priority: obtain current priority 4187 rtems_task_set_priority: returns to caller 9188 rtems_task_mode: obtain current mode 1189 rtems_task_mode: no reschedule 1190 rtems_task_mode: reschedule -- returns to caller 3191 rtems_task_mode: reschedule -- preempts caller 11192 rtems_task_set_note 3193 rtems_task_get_note 3194 rtems_clock_set 9195 rtems_clock_get 0196 *** END OF TEST 8 ***197 184 198 185 *** TIME TEST 9 *** … … 393 380 rtems_task_set_priority 0 394 381 rtems_task_mode 0 395 rtems_task_get_note 0396 rtems_task_set_note 0397 382 rtems_task_wake_when 0 398 383 rtems_task_wake_after 0 -
c/src/lib/libbsp/m68k/mcf5329/README
ra48b7c44 rd5154d0f 92 92 rtems_task_restart: suspended task -- preempts caller 15 93 93 *** END OF TEST 7 *** 94 95 *** TIME TEST 8 ***96 rtems_task_set_priority: obtain current priority 197 rtems_task_set_priority: returns to caller 298 rtems_task_mode: obtain current mode 099 rtems_task_mode: no reschedule 0100 rtems_task_mode: reschedule -- returns to caller 1101 rtems_task_mode: reschedule -- preempts caller 13102 rtems_task_set_note 1103 rtems_task_get_note 1104 rtems_clock_set 1105 rtems_clock_get 4106 *** END OF TEST 8 ***107 94 108 95 *** TIME TEST 9 *** … … 290 277 rtems_task_set_priority 0 291 278 rtems_task_mode 0 292 rtems_task_get_note 0293 rtems_task_set_note 0294 279 rtems_task_wake_when 0 295 280 rtems_task_wake_after 0 -
c/src/lib/libbsp/m68k/mrm332/times
ra48b7c44 rd5154d0f 58 58 rtems_task_mode: reschedule -- returns to caller 8 59 59 rtems_task_mode: reschedule -- preempts caller 39 60 rtems_task_set_note 1361 rtems_task_get_note 1362 60 rtems_clock_set 33 63 61 rtems_clock_get 3 -
c/src/lib/libbsp/m68k/mvme162/times
ra48b7c44 rd5154d0f 56 56 rtems_task_mode: reschedule -- returns to caller 8 57 57 rtems_task_mode: reschedule -- preempts caller 39 58 rtems_task_set_note 1359 rtems_task_get_note 1360 58 rtems_clock_set 33 61 59 rtems_clock_get 3 -
c/src/lib/libbsp/m68k/mvme167/times
ra48b7c44 rd5154d0f 63 63 rtems_task_restart: suspended task -- preempts caller 44 64 64 *** END OF TEST 7 *** 65 66 *** TIME TEST 8 ***67 rtems_task_set_priority: obtain current priority 768 rtems_task_set_priority: returns to caller 1669 rtems_task_mode: obtain current mode 470 rtems_task_mode: no reschedule 571 rtems_task_mode: reschedule -- returns to caller 1172 rtems_task_mode: reschedule -- preempts caller 2973 rtems_task_set_note 774 rtems_task_get_note 775 rtems_clock_set 2176 rtems_clock_get 077 *** END OF TEST 8 ***78 65 79 66 … … 300 287 rtems_task_set_priority 0 301 288 rtems_task_mode 0 302 rtems_task_get_note 0303 rtems_task_set_note 0304 289 rtems_task_wake_when 1 305 290 rtems_task_wake_after 0 -
c/src/lib/libbsp/m68k/uC5282/TIMES
ra48b7c44 rd5154d0f 46 46 rtems_task_restart: suspended task -- preempts caller 44 47 47 *** END OF TEST 7 *** 48 49 *** TIME TEST 8 ***50 rtems_task_set_priority: obtain current priority 651 rtems_task_set_priority: returns to caller 1752 rtems_task_mode: obtain current mode 353 rtems_task_mode: no reschedule 354 rtems_task_mode: reschedule -- returns to caller 855 rtems_task_mode: reschedule -- preempts caller 2256 rtems_task_set_note 657 rtems_task_get_note 658 rtems_clock_set 2259 rtems_clock_get 160 *** END OF TEST 8 ***61 48 62 49 *** TIME TEST 9 *** -
c/src/lib/libbsp/mips/csb350/times
ra48b7c44 rd5154d0f 55 55 8 rtems_task_mode: reschedule -- returns to caller 7803 56 56 8 rtems_task_mode: reschedule -- preempts caller 18542 57 8 rtems_task_set_note 104458 8 rtems_task_get_note 104659 57 8 rtems_clock_set 2777 60 58 8 rtems_clock_get 161 -
c/src/lib/libbsp/mips/hurricane/times
ra48b7c44 rd5154d0f 61 61 rtems_task_mode: reschedule -- returns to caller 0 232 62 62 rtems_task_mode: reschedule -- preempts caller 0 687 63 rtems_task_set_note 0 10164 rtems_task_get_note 0 10365 63 rtems_clock_set 0 237 66 64 rtems_clock_get 0 16 -
c/src/lib/libbsp/nios2/nios2_iss/times
ra48b7c44 rd5154d0f 56 56 rtems_task_mode: reschedule -- returns to caller 8 57 57 rtems_task_mode: reschedule -- preempts caller 39 58 rtems_task_set_note 1359 rtems_task_get_note 1360 58 rtems_clock_set 33 61 59 rtems_clock_get 3 -
c/src/lib/libbsp/no_cpu/no_bsp/times
ra48b7c44 rd5154d0f 56 56 rtems_task_mode: reschedule -- returns to caller 8 57 57 rtems_task_mode: reschedule -- preempts caller 39 58 rtems_task_set_note 1359 rtems_task_get_note 1360 58 rtems_clock_set 33 61 59 rtems_clock_get 3 -
c/src/lib/libbsp/powerpc/mbx8xx/times-mbx821
ra48b7c44 rd5154d0f 54 54 rtems_task_mode: reschedule -- returns to caller 75 32 55 55 rtems_task_mode: reschedule -- preempts caller 292 97 56 rtems_task_set_note 112 1157 rtems_task_get_note 113 1158 56 rtems_clock_set 250 25 59 57 rtems_clock_get 6 1 -
c/src/lib/libbsp/powerpc/mbx8xx/times-mbx860
ra48b7c44 rd5154d0f 54 54 rtems_task_mode: reschedule -- returns to caller 66 25 55 55 rtems_task_mode: reschedule -- preempts caller 246 69 56 rtems_task_set_note 99 1157 rtems_task_get_note 100 2358 56 rtems_clock_set 222 35 59 57 rtems_clock_get 6 1 -
c/src/lib/libbsp/powerpc/motorola_powerpc/times.mcp750
ra48b7c44 rd5154d0f 49 49 rtems_task_mode: reschedule -- returns to caller___________________1.711 50 50 rtems_task_mode: reschedule -- preempts caller_____________________3.304 51 rtems_task_get_note________________________________________________0.54952 rtems_task_set_note________________________________________________0.54853 51 rtems_task_wake_after: yield -- returns to caller__________________3.063 54 52 rtems_task_wake_after: yields -- preempts caller___________________3.063 -
c/src/lib/libbsp/powerpc/motorola_powerpc/times.mvme2307
ra48b7c44 rd5154d0f 58 58 rtems_task_mode: reschedule -- returns to caller 5.933 59 59 rtems_task_mode: reschedule -- preempts caller 22.613 60 rtems_task_set_note 10.11561 rtems_task_get_note 10.23662 60 rtems_clock_set 21.466 63 61 rtems_clock_get 2.286 -
c/src/lib/libbsp/powerpc/mpc8260ads/README
ra48b7c44 rd5154d0f 185 185 rtems_task_mode: reschedule -- returns to caller 15 186 186 rtems_task_mode: reschedule -- preempts caller 43 187 rtems_task_get_note 13188 rtems_task_set_note 12189 187 rtems_task_wake_after: yield -- returns to caller 8 190 188 rtems_task_wake_after: yields -- preempts caller 30 -
c/src/lib/libbsp/powerpc/mpc8260ads/times
ra48b7c44 rd5154d0f 57 57 rtems_task_mode: reschedule -- returns to caller 14 58 58 rtems_task_mode: reschedule -- preempts caller 43 59 rtems_task_set_note 1360 rtems_task_get_note 1261 59 rtems_clock_set 28 62 60 rtems_clock_get 0 -
c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c
ra48b7c44 rd5154d0f 102 102 /* retrieve the notepad which possibly holds an extention pointer */ 103 103 if (RTEMS_SUCCESSFUL==rtems_task_ident(RTEMS_SELF,RTEMS_LOCAL,&id) && 104 // FIXME: Deprecated use of Notepads. #2503. 104 105 #if 0 105 106 /* Must not use a notepad due to unknown initial value (notepad memory is allocated from the -
c/src/lib/libbsp/powerpc/ss555/times
ra48b7c44 rd5154d0f 52 52 rtems_task_mode: reschedule -- returns to caller 7 53 53 rtems_task_mode: reschedule -- preempts caller 37 54 rtems_task_set_note 1355 rtems_task_get_note 1356 54 rtems_clock_set 27 57 55 rtems_clock_get 1 -
c/src/lib/libbsp/sh/gensh1/times
ra48b7c44 rd5154d0f 58 58 rtems_task_mode: reschedule -- returns to caller X 59 59 rtems_task_mode: reschedule -- preempts caller X 60 rtems_task_set_note X61 rtems_task_get_note X62 60 rtems_clock_set X 63 61 rtems_clock_get X -
c/src/lib/libbsp/sparc/erc32/times
ra48b7c44 rd5154d0f 55 55 rtems_task_mode: reschedule -- returns to caller 8 56 56 rtems_task_mode: reschedule -- preempts caller 39 57 rtems_task_set_note 1358 rtems_task_get_note 1359 57 rtems_clock_set 33 60 58 rtems_clock_get 3 -
c/src/lib/libbsp/sparc/leon2/times
ra48b7c44 rd5154d0f 55 55 rtems_task_mode: reschedule -- returns to caller 8 56 56 rtems_task_mode: reschedule -- preempts caller 39 57 rtems_task_set_note 1358 rtems_task_get_note 1359 57 rtems_clock_set 33 60 58 rtems_clock_get 3 -
c/src/lib/libbsp/sparc/leon3/times
ra48b7c44 rd5154d0f 55 55 rtems_task_mode: reschedule -- returns to caller 8 56 56 rtems_task_mode: reschedule -- preempts caller 39 57 rtems_task_set_note 1358 rtems_task_get_note 1359 57 rtems_clock_set 33 60 58 rtems_clock_get 3 -
c/src/librtems++/include/rtems++/rtemsTask.h
ra48b7c44 rd5154d0f 47 47 48 48 Mode control is through the rtemsTaskMode class. 49 50 The rtemsTask class reserved notepad register 31.51 49 52 50 ------------------------------------------------------------------------ */ … … 126 124 rtems_task_priority& old_priority); 127 125 128 // notepad control129 const rtems_status_code get_note(const uint32_t notepad,130 uint32_t& note) RTEMS_DEPRECATED;131 const rtems_status_code set_note(const uint32_t notepad,132 const uint32_t note) RTEMS_DEPRECATED;133 134 126 // object id, and name 135 127 const rtems_id id_is() const { return id; } -
c/src/librtems++/src/rtemsTask.cc
ra48b7c44 rd5154d0f 263 263 &old_priority)); 264 264 } 265 266 const rtems_status_code rtemsTask::get_note(const uint32_t notepad,267 uint32_t& note)268 {269 return set_status_code(rtems_task_get_note(id, notepad, ¬e));270 }271 272 const rtems_status_code rtemsTask::set_note(const uint32_t notepad,273 const uint32_t note)274 {275 return set_status_code(rtems_task_set_note(id, notepad, note));276 }277 265 278 266 void rtemsTask::body(rtems_task_argument ) -
cpukit/libcsupport/src/README
ra48b7c44 rd5154d0f 11 11 12 12 When a task is "started" (in RTEMS sense) the reentrancy structure 13 is allocated. Its address is stored in notepad[NOTEPAD_LAST].13 is allocated. 14 14 15 15 When task is switched to, the value of global variable _impure_ptr -
cpukit/libmisc/monitor/README
ra48b7c44 rd5154d0f 89 89 90 90 It has no events. 91 It has a notepad value for notepad 15 which is 0x4060634892 91 (this is the libc thread state) 93 92 -
cpukit/rtems/Makefile.am
ra48b7c44 rd5154d0f 91 91 librtems_a_SOURCES += src/taskdelete.c 92 92 librtems_a_SOURCES += src/taskgetaffinity.c 93 librtems_a_SOURCES += src/taskgetnote.c94 93 librtems_a_SOURCES += src/taskgetscheduler.c 95 94 librtems_a_SOURCES += src/taskident.c … … 101 100 librtems_a_SOURCES += src/taskself.c 102 101 librtems_a_SOURCES += src/tasksetaffinity.c 103 librtems_a_SOURCES += src/tasksetnote.c104 102 librtems_a_SOURCES += src/tasksetpriority.c 105 103 librtems_a_SOURCES += src/tasksetscheduler.c -
cpukit/rtems/include/rtems/rtems/config.h
ra48b7c44 rd5154d0f 53 53 */ 54 54 uint32_t maximum_tasks; 55 56 /**57 * This field indicates whether Classic API notepads are58 * enabled or disabled.59 */60 bool notepads_enabled;61 55 62 56 /** … … 134 128 135 129 /** 136 * This macro returns the value of the notepads enabled field137 * in the Classic API configuration table.138 */139 #define rtems_configuration_get_notepads_enabled() \140 rtems_configuration_get_rtems_api_configuration()->notepads_enabled141 142 /**143 130 * This macro returns the number of Classic API semaphores configured. 144 131 */ -
cpukit/rtems/include/rtems/rtems/taskmp.h
ra48b7c44 rd5154d0f 55 55 RTEMS_TASKS_MP_SET_PRIORITY_REQUEST = 6, 56 56 RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE = 7, 57 RTEMS_TASKS_MP_GET_NOTE_REQUEST = 8,58 RTEMS_TASKS_MP_GET_NOTE_RESPONSE = 9,59 RTEMS_TASKS_MP_SET_NOTE_REQUEST = 10,60 RTEMS_TASKS_MP_SET_NOTE_RESPONSE = 1161 57 } RTEMS_tasks_MP_Remote_operations; 62 58 … … 70 66 rtems_name name; 71 67 rtems_task_priority the_priority; 72 uint32_t notepad;73 uint32_t note;74 68 } RTEMS_tasks_MP_Packet; 75 69 … … 97 91 RTEMS_tasks_MP_Remote_operations operation, 98 92 Objects_Id task_id, 99 rtems_task_priority the_priority, 100 uint32_t notepad, 101 uint32_t note 93 rtems_task_priority the_priority 102 94 ); 103 95 -
cpukit/rtems/include/rtems/rtems/tasks.h
ra48b7c44 rd5154d0f 22 22 * - set a task's priority 23 23 * - change the current task's mode 24 * - get a task notepad entry25 * - set a task notepad entry26 24 * - wake up after interval 27 25 * - wake up when specified … … 110 108 */ 111 109 #define RTEMS_CURRENT_PRIORITY PRIORITY_MINIMUM 112 113 /** This is used to indicate the lowest numbered notepad */114 #define RTEMS_NOTEPAD_FIRST 0115 /** This is used to indicate the notepad location 0. */116 #define RTEMS_NOTEPAD_0 0117 /** This is used to indicate the notepad location 1. */118 #define RTEMS_NOTEPAD_1 1119 /** This is used to indicate the notepad location 2. */120 #define RTEMS_NOTEPAD_2 2121 /** This is used to indicate the notepad location 3. */122 #define RTEMS_NOTEPAD_3 3123 /** This is used to indicate the notepad location 4. */124 #define RTEMS_NOTEPAD_4 4125 /** This is used to indicate the notepad location 5. */126 #define RTEMS_NOTEPAD_5 5127 /** This is used to indicate the notepad location 6. */128 #define RTEMS_NOTEPAD_6 6129 /** This is used to indicate the notepad location 7. */130 #define RTEMS_NOTEPAD_7 7131 /** This is used to indicate the notepad location 8. */132 #define RTEMS_NOTEPAD_8 8133 /** This is used to indicate the notepad location 9. */134 #define RTEMS_NOTEPAD_9 9135 /** This is used to indicate the notepad location 10. */136 #define RTEMS_NOTEPAD_10 10137 /** This is used to indicate the notepad location 11. */138 #define RTEMS_NOTEPAD_11 11139 /** This is used to indicate the notepad location 12. */140 #define RTEMS_NOTEPAD_12 12141 /** This is used to indicate the notepad location 13. */142 #define RTEMS_NOTEPAD_13 13143 /** This is used to indicate the notepad location 14. */144 #define RTEMS_NOTEPAD_14 14145 /** This is used to indicate the notepad location 15. */146 #define RTEMS_NOTEPAD_15 15147 /** This is used to indicate the highest numbered notepad. */148 #define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15149 150 /** This is used to indicate the number of notepads available. */151 #define RTEMS_NUMBER_NOTEPADS (RTEMS_NOTEPAD_LAST+1)152 110 153 111 /** … … 270 228 271 229 /** 272 * @brief RTEMS Get Task Node273 *274 * @deprecated Notepads are deprecated and will be removed.275 *276 * This routine implements the rtems_task_get_note directive. The277 * value of the indicated notepad for the task associated with ID278 * is returned in note.279 *280 * @param[in] id is the thread id281 * @param[in] notepad is the notepad number282 * @param[out] note is the pointer to note283 *284 * @retval RTEMS_SUCCESSFUL if successful or error code if unsuccessful285 */286 rtems_status_code rtems_task_get_note(287 rtems_id id,288 uint32_t notepad,289 uint32_t *note290 ) RTEMS_DEPRECATED;291 292 /**293 * @brief RTEMS Set Task Note294 *295 * @deprecated Notepads are deprecated and will be removed.296 *297 * This routine implements the rtems_task_set_note directive. The298 * value of the indicated notepad for the task associated with ID299 * is returned in note.300 *301 * @param[in] id is the thread id302 * @param[in] notepad is the notepad number303 * @param[in] note is the note value304 *305 * @return This method returns RTEMS_SUCCESSFUL if there was not an306 * error. Otherwise, a status code is returned indicating the307 * source of the error.308 */309 rtems_status_code rtems_task_set_note(310 rtems_id id,311 uint32_t notepad,312 uint32_t note313 ) RTEMS_DEPRECATED;314 315 /**316 230 * @brief RTEMS Task Mode 317 231 * … … 655 569 * the RTEMS API to function correctly. 656 570 * 657 * @note Notepads must be the last entry in the structure and memory658 * will be taken away from this structure when allocated if659 * notespads are disabled by the application configuration.660 571 */ 661 572 typedef struct { … … 671 582 */ 672 583 Thread_Action Signal_action; 673 674 /**675 * This field contains the notepads for this task.676 *677 * @deprecated Notepads are deprecated and will be removed.678 *679 * @note MUST BE LAST ENTRY.680 */681 uint32_t Notepads[ RTEMS_ZERO_LENGTH_ARRAY ] RTEMS_DEPRECATED;682 584 } RTEMS_API_Control; 683 585 -
cpukit/rtems/mainpage.h
ra48b7c44 rd5154d0f 686 686 * RTEMS internal data structure that can be accessed by an application via 687 687 * user extension routines. The TCB contains a task's name, ID, current 688 * priority, current and starting states, execution mode, set of notepad689 * locations, TCB user extension pointer, scheduling control structures, as690 * well as data required by ablocked task.688 * priority, current and starting states, execution mode, TCB user extension 689 * pointer, scheduling control structures, as well as data required by a 690 * blocked task. 691 691 * 692 692 * A task's context is stored in the TCB when a task switch occurs. When the -
cpukit/rtems/src/taskmp.c
ra48b7c44 rd5154d0f 65 65 case RTEMS_TASKS_MP_SET_PRIORITY_REQUEST: 66 66 case RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE: 67 case RTEMS_TASKS_MP_GET_NOTE_REQUEST:68 case RTEMS_TASKS_MP_GET_NOTE_RESPONSE:69 case RTEMS_TASKS_MP_SET_NOTE_REQUEST:70 case RTEMS_TASKS_MP_SET_NOTE_RESPONSE:71 67 break; 72 68 } … … 81 77 RTEMS_tasks_MP_Remote_operations operation, 82 78 Objects_Id task_id, 83 rtems_task_priority new_priority, 84 uint32_t notepad, 85 uint32_t note 79 rtems_task_priority new_priority 86 80 ) 87 81 { … … 93 87 case RTEMS_TASKS_MP_RESUME_REQUEST: 94 88 case RTEMS_TASKS_MP_SET_PRIORITY_REQUEST: 95 case RTEMS_TASKS_MP_GET_NOTE_REQUEST:96 case RTEMS_TASKS_MP_SET_NOTE_REQUEST:97 89 98 90 the_packet = _RTEMS_tasks_MP_Get_packet(); … … 103 95 the_packet->Prefix.id = task_id; 104 96 the_packet->the_priority = new_priority; 105 the_packet->notepad = notepad;106 the_packet->note = note;107 97 108 98 return _MPCI_Send_request_packet( … … 119 109 case RTEMS_TASKS_MP_RESUME_RESPONSE: 120 110 case RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE: 121 case RTEMS_TASKS_MP_GET_NOTE_RESPONSE:122 case RTEMS_TASKS_MP_SET_NOTE_RESPONSE:123 111 break; 124 112 … … 148 136 case RTEMS_TASKS_MP_RESUME_RESPONSE: 149 137 case RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE: 150 case RTEMS_TASKS_MP_GET_NOTE_RESPONSE:151 case RTEMS_TASKS_MP_SET_NOTE_RESPONSE:152 138 153 139 the_packet = (RTEMS_tasks_MP_Packet *) the_thread->receive_packet; … … 171 157 case RTEMS_TASKS_MP_RESUME_REQUEST: 172 158 case RTEMS_TASKS_MP_SET_PRIORITY_REQUEST: 173 case RTEMS_TASKS_MP_GET_NOTE_REQUEST:174 case RTEMS_TASKS_MP_SET_NOTE_REQUEST:175 159 break; 176 160 … … 232 216 case RTEMS_TASKS_MP_SUSPEND_RESPONSE: 233 217 case RTEMS_TASKS_MP_RESUME_RESPONSE: 234 case RTEMS_TASKS_MP_SET_NOTE_RESPONSE:235 218 236 219 the_thread = _MPCI_Process_response( the_packet_prefix ); … … 274 257 _MPCI_Return_packet( the_packet_prefix ); 275 258 break; 276 277 case RTEMS_TASKS_MP_GET_NOTE_REQUEST:278 279 the_packet->Prefix.return_code = rtems_task_get_note(280 the_packet->Prefix.id,281 the_packet->notepad,282 &the_packet->note283 );284 285 _RTEMS_tasks_MP_Send_response_packet(286 RTEMS_TASKS_MP_GET_NOTE_RESPONSE,287 _Thread_Executing288 );289 break;290 291 case RTEMS_TASKS_MP_GET_NOTE_RESPONSE:292 293 the_thread = _MPCI_Process_response( the_packet_prefix );294 295 *(uint32_t *)the_thread->Wait.return_argument = the_packet->note;296 297 _MPCI_Return_packet( the_packet_prefix );298 break;299 300 case RTEMS_TASKS_MP_SET_NOTE_REQUEST:301 302 the_packet->Prefix.return_code = rtems_task_set_note(303 the_packet->Prefix.id,304 the_packet->notepad,305 the_packet->note306 );307 308 _RTEMS_tasks_MP_Send_response_packet(309 RTEMS_TASKS_MP_SET_NOTE_RESPONSE,310 _Thread_Executing311 );312 break;313 259 } 314 260 } -
cpukit/rtems/src/taskresume.c
ra48b7c44 rd5154d0f 45 45 RTEMS_TASKS_MP_RESUME_REQUEST, 46 46 id, 47 0, /* Not used */ 48 0, /* Not used */ 49 0 /* Not used */ 47 0 /* Not used */ 50 48 ); 51 49 #endif -
cpukit/rtems/src/tasksetpriority.c
ra48b7c44 rd5154d0f 64 64 RTEMS_TASKS_MP_SET_PRIORITY_REQUEST, 65 65 id, 66 new_priority, 67 0, /* Not used */ 68 0 /* Not used */ 66 new_priority 69 67 ); 70 68 #endif -
cpukit/rtems/src/tasksuspend.c
ra48b7c44 rd5154d0f 45 45 RTEMS_TASKS_MP_SUSPEND_REQUEST, 46 46 id, 47 0, /* Not used */ 48 0, /* Not used */ 49 0 /* Not used */ 47 0 /* Not used */ 50 48 ); 51 49 #endif -
cpukit/sapi/include/confdefs.h
ra48b7c44 rd5154d0f 2086 2086 (CONFIGURE_MAXIMUM_TASKS + CONFIGURE_LIBBLOCK_TASKS) 2087 2087 2088 /*2089 * Classic API notepads are a deprecated feature and will be removed2090 * in a future release of RTEMS. Warn the user who uses them.2091 */2092 #if defined(CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS)2093 #warning "Classic API Notepads are deprecated and will be removed."2094 #endif2095 #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS)2096 #warning "Classic API Notepads are deprecated and will be removed."2097 #endif2098 2099 /** This configuration parameter enables/disables Classic API notepads. */2100 #ifdef CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS2101 #define CONFIGURE_NOTEPADS_ENABLED TRUE2102 #else2103 #define CONFIGURE_NOTEPADS_ENABLED FALSE2104 #endif2105 2106 2088 /** 2107 2089 * This macro calculates the memory required for task variables. … … 3302 3284 } Scheduler; 3303 3285 RTEMS_API_Control API_RTEMS; 3304 #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS)3305 uint32_t Notepads[ RTEMS_NUMBER_NOTEPADS ] RTEMS_DEPRECATED;3306 #endif3307 3286 #ifdef RTEMS_POSIX_API 3308 3287 POSIX_API_Control API_POSIX; … … 3355 3334 rtems_api_configuration_table Configuration_RTEMS_API = { 3356 3335 CONFIGURE_TASKS, 3357 CONFIGURE_NOTEPADS_ENABLED,3358 3336 CONFIGURE_MAXIMUM_TIMERS + CONFIGURE_TIMER_FOR_SHARED_MEMORY_DRIVER, 3359 3337 CONFIGURE_SEMAPHORES, -
cpukit/sapi/include/rtems/extension.h
ra48b7c44 rd5154d0f 89 89 * available for the dynamic extensions. This set of pointers is an extension 90 90 * of the TCB and can be used to store additional data required by the user's 91 * extension functions. It is also possible for a user extension to utilize the 92 * notepad locations associated with each task although this may conflict with 93 * application usage of those particular notepads. 91 * extension functions. 94 92 * 95 93 * The TCB extension is an array of pointers in the TCB. The index into the -
cpukit/score/include/rtems/score/thread.h
ra48b7c44 rd5154d0f 908 908 * The thread control block contains fields that point to application 909 909 * configuration dependent memory areas, like the scheduler information, the 910 * API control blocks, the user extension context table, the RTEMS notepads and911 * the Newlib re-entrancy support. Account for these areas in the912 * configuration andavoid extra workspace allocations for these areas.910 * API control blocks, the user extension context table, and the Newlib 911 * re-entrancy support. Account for these areas in the configuration and 912 * avoid extra workspace allocations for these areas. 913 913 * 914 914 * This array is provided via <rtems/confdefs.h>. -
doc/user/conf.t
ra48b7c44 rd5154d0f 594 594 require the addition of a new configuration parameter to specify the 595 595 number of tasks which enable floating point support. 596 597 @c598 @c === CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS ===599 @c600 @subsection Enable Classic API Notepads601 602 @findex CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS603 604 @table @b605 @item CONSTANT:606 @code{CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS}607 608 @item DATA TYPE:609 Boolean feature macro.610 611 @item RANGE:612 Defined or undefined.613 614 @item DEFAULT VALUE:615 This is not defined by default, and Classic API Notepads are not supported.616 617 @end table618 619 @subheading DESCRIPTION:620 @code{CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS} should be defined if the621 user wants to have support for Classic API Notepads in their application.622 623 @subheading NOTES:624 Disabling Classic API Notepads saves the allocation of sixteen (16)625 thirty-two bit integers. This saves sixty-four bytes per task/thread626 plus the allocation overhead. Notepads are rarely used in applications627 and this can save significant memory in a low RAM system. Classic API628 Notepads are deprecated, and this option is expected to be obsolete in629 the near future.630 631 @c632 @c === CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS ===633 @c634 @subsection Disable Classic API Notepads635 636 @findex CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS637 638 @table @b639 @item CONSTANT:640 @code{CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS}641 642 @item DATA TYPE:643 Boolean feature macro.644 645 @item RANGE:646 Defined or undefined.647 648 @item DEFAULT VALUE:649 This is not defined by default, and Classic API Notepads are not supported.650 651 @end table652 653 @subheading DESCRIPTION:654 @code{CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS} is deprecated. If users655 want to have support for Classic API Notepads, they should use656 @code{CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS}.657 658 @subheading NOTES:659 Disabling Classic API Notepads saves the allocation of sixteen (16)660 thirty-two bit integers. This saves sixty-four bytes per task/thread661 plus the allocation overhead. Notepads are rarely used in applications662 and this can save significant memory in a low RAM system. Classic API663 Notepads are deprecated, and this option is expected to be obsolete in664 the near future.665 596 666 597 @c -
doc/user/intr.t
ra48b7c44 rd5154d0f 190 190 191 191 @itemize 192 @item rtems_task_get_note193 @item rtems_task_set_note194 192 @item rtems_task_suspend 195 193 @item rtems_task_resume -
doc/user/task.t
ra48b7c44 rd5154d0f 26 26 @item @code{@value{DIRPREFIX}task_set_priority} - Set task priority 27 27 @item @code{@value{DIRPREFIX}task_mode} - Change current task's mode 28 @item @code{@value{DIRPREFIX}task_get_note} - Get task notepad entry29 @item @code{@value{DIRPREFIX}task_set_note} - Set task notepad entry30 28 @item @code{@value{DIRPREFIX}task_wake_after} - Wake up after interval 31 29 @item @code{@value{DIRPREFIX}task_wake_when} - Wake up when specified … … 82 80 accessed by an application via user extension routines. The TCB 83 81 contains a task's name, ID, current priority, current and 84 starting states, execution mode, set of notepad locations, TCB85 user extension pointer, scheduling control structures, as well 86 as data required by a blocked task. 82 starting states, execution mode, TCB user extension pointer, 83 scheduling control structures, as well as data required by a 84 blocked task. 87 85 88 86 A task's context is stored in the TCB when a task switch occurs. … … 636 634 directive resets the mode of a task to its 637 635 original value. 638 639 @subsection Notepad Locations640 641 RTEMS provides sixteen notepad locations for each task. Each642 notepad location may contain a note consisting of four bytes of643 information. RTEMS provides two directives,644 @code{@value{DIRPREFIX}task_set_note} and645 @code{@value{DIRPREFIX}task_get_note}, that enable a user646 to access and change the647 notepad locations. The @code{@value{DIRPREFIX}task_set_note}648 directive enables the user649 to set a task's notepad entry to a specified note. The650 @code{@value{DIRPREFIX}task_get_note}651 directive allows the user to obtain the note652 contained in any one of the sixteen notepads of a specified task.653 Notepads are deprecated and will be removed.654 636 655 637 @subsection Task Deletion … … 1483 1465 @page 1484 1466 1485 @subsection TASK_GET_NOTE - Get task notepad entry1486 1487 @cindex get task notepad entry1488 1489 @subheading CALLING SEQUENCE:1490 1491 @ifset is-C1492 @findex rtems_task_get_note1493 @example1494 rtems_status_code rtems_task_get_note(1495 rtems_id id,1496 uint32_t notepad,1497 uint32_t *note1498 );1499 @end example1500 @end ifset1501 1502 @ifset is-Ada1503 @example1504 procedure Task_Get_Note (1505 ID : in RTEMS.ID;1506 Notepad : in RTEMS.Notepad_Index;1507 Note : out RTEMS.Unsigned32;1508 Result : out RTEMS.Status_Codes1509 );1510 @end example1511 @end ifset1512 1513 @subheading DIRECTIVE STATUS CODES:1514 @code{@value{RPREFIX}SUCCESSFUL} - note obtained successfully@*1515 @code{@value{RPREFIX}INVALID_ADDRESS} - @code{note} is NULL@*1516 @code{@value{RPREFIX}INVALID_ID} - invalid task id@*1517 @code{@value{RPREFIX}INVALID_NUMBER} - invalid notepad location1518 1519 @subheading DESCRIPTION:1520 This directive returns the note contained in the notepad1521 location of the task specified by id.1522 1523 @subheading NOTES:1524 This directive is deprecated and will be removed.1525 1526 This directive will not cause the running task to be preempted.1527 1528 If id is set to @code{@value{RPREFIX}SELF},1529 the calling task accesses its own notepad.1530 1531 @c This version of the paragraph avoids the overfull hbox error.1532 @c The constants NOTEPAD_0 through NOTEPAD_15 can be used to access the1533 @c sixteen notepad locations.1534 1535 The sixteen notepad locations can be accessed using the constants1536 @code{@value{RPREFIX}NOTEPAD_0} through @code{@value{RPREFIX}NOTEPAD_15}.1537 1538 Getting a note of a global task which does not reside on the1539 local node will generate a request to the remote node to obtain1540 the notepad entry of the specified task.1541 1542 @page1543 1544 @subsection TASK_SET_NOTE - Set task notepad entry1545 1546 @cindex set task notepad entry1547 1548 @subheading CALLING SEQUENCE:1549 1550 @ifset is-C1551 @findex rtems_task_set_note1552 @example1553 rtems_status_code rtems_task_set_note(1554 rtems_id id,1555 uint32_t notepad,1556 uint32_t note1557 );1558 @end example1559 @end ifset1560 1561 @ifset is-Ada1562 @example1563 procedure Task_Set_Note (1564 ID : in RTEMS.ID;1565 Notepad : in RTEMS.Notepad_Index;1566 Note : in RTEMS.Unsigned32;1567 Result : out RTEMS.Status_Codes1568 );1569 @end example1570 @end ifset1571 1572 @subheading DIRECTIVE STATUS CODES:1573 @code{@value{RPREFIX}SUCCESSFUL} - task's note set successfully@*1574 @code{@value{RPREFIX}INVALID_ID} - invalid task id@*1575 @code{@value{RPREFIX}INVALID_NUMBER} - invalid notepad location1576 1577 @subheading DESCRIPTION:1578 This directive is deprecated and will be removed.1579 1580 This directive sets the notepad entry for the task specified by1581 id to the value note.1582 1583 @subheading NOTES:1584 If id is set to @code{@value{RPREFIX}SELF}, the calling1585 task accesses its own notepad locations.1586 1587 This directive will not cause the running task to be preempted.1588 1589 @c This version of the paragraph avoids the overfull hbox error.1590 @c The constants NOTEPAD_0 through NOTEPAD_15 can be used to access the1591 @c sixteen notepad locations.1592 1593 The sixteen notepad locations can be accessed using the constants1594 @code{@value{RPREFIX}NOTEPAD_0} through @code{@value{RPREFIX}NOTEPAD_15}.1595 1596 Setting a notepad location of a global task which does not1597 reside on the local node will generate a request to the remote1598 node to set the specified notepad entry.1599 1600 @page1601 1602 1467 @subsection TASK_WAKE_AFTER - Wake up after interval 1603 1468 -
doc/user/userext.t
ra48b7c44 rd5154d0f 135 135 block. This set of pointers is an extension of the TCB and can 136 136 be used to store additional data required by the user's 137 extension functions. It is also possible for a user extension 138 to utilize the notepad locations associated with each task 139 although this may conflict with application usage of those 140 particular notepads. However, notepads are deprecated and will 141 be removed. 137 extension functions. 142 138 143 139 The TCB extension is an array of pointers in the TCB. The -
testsuites/PROBLEMS
ra48b7c44 rd5154d0f 21 21 sp04 - hangs at end of tests. 22 22 sp06 - rtems_task_restart of TA3 FAILED -- expected (0) got (4) 23 sp 07, sp14 - hang in middle of tests23 sp14 - hang in middle of tests 24 24 sp13, sp15 - terminate properly, but output at end is missing. 25 25 sp16 - _Internal_error_Occurred. -
testsuites/libtests/rtems++/System.h
ra48b7c44 rd5154d0f 124 124 #define CONFIGURE_TICKS_PER_TIMESLICE 100 125 125 126 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS127 126 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION 128 127 -
testsuites/libtests/rtems++/Task1.cc
ra48b7c44 rd5154d0f 260 260 printf("%s, priority was %" PRIirtems_task_priority "\n", task_2.last_status_string(), priority); 261 261 262 uint32_t current_note;263 uint32_t note;264 265 // notepad registers for this object266 267 printf("%s - get note - ", name_string());268 get_note(0, current_note);269 printf("%s, note is %" PRIi32 "\n", last_status_string(), current_note);270 271 printf("%s - get with bad notepad number - ", name_string());272 get_note(100, current_note);273 printf("%s, note is %" PRIi32 "\n", last_status_string(), current_note);274 275 printf("%s - set note to 0xDEADBEEF - ", name_string());276 set_note(0, 0xDEADBEEF);277 printf("%s\n", last_status_string());278 279 printf("%s - get note - ", name_string());280 get_note(0, note);281 printf("%s, note is 0x%08" PRIX32 "\n", last_status_string(), note);282 283 printf("%s - set note to original value - ", name_string());284 set_note(0, current_note);285 printf("%s\n", last_status_string());286 287 // notepad registers for connected object288 289 printf("%s - connected object get note - ", task_1.name_string());290 task_1.get_note(0, current_note);291 printf("%s, notepad is %" PRIi32 "\n", task_1.last_status_string(), current_note);292 293 printf("%s - connected object get with bad notepad number - ", task_1.name_string());294 task_1.get_note(100, current_note);295 printf("%s, note is %" PRIi32 "\n", task_1.last_status_string(), current_note);296 297 printf("%s - connected object set note to 0xDEADBEEF - ", task_1.name_string());298 task_1.set_note(0, 0xDEADBEEF);299 printf("%s\n", task_1.last_status_string());300 301 printf("%s - connected object get note - ", task_1.name_string());302 task_1.get_note(0, note);303 printf("%s, note is 0x%08" PRIX32 "\n", task_1.last_status_string(), note);304 305 printf("%s - connected object set note to original value - ", task_1.name_string());306 task_1.set_note(0, current_note);307 printf("%s\n", task_1.last_status_string());308 309 // notepad registers for self object310 311 printf("%s - self object get note - ", task_2.name_string());312 task_2.get_note(0, current_note);313 printf("%s, note is %" PRIi32 "\n", task_2.last_status_string(), current_note);314 315 printf("%s - self object get with bad notepad number - ", task_2.name_string());316 task_2.get_note(100, current_note);317 printf("%s, note is %" PRIi32 "\n", task_2.last_status_string(), current_note);318 319 printf("%s - self object set note to 0xDEADBEEF - ", task_2.name_string());320 task_2.set_note(0, 0xDEADBEEF);321 printf("%s\n", task_2.last_status_string());322 323 printf("%s - self object get note - ", task_2.name_string());324 task_2.get_note(0, note);325 printf("%s, notepad is 0x%08" PRIX32 "\n", task_2.last_status_string(), note);326 327 printf("%s - self object set note to original value - ", task_2.name_string());328 task_2.set_note(0, current_note);329 printf("%s\n", task_2.last_status_string());330 331 262 printf(" END Task Class test\n"); 332 263 } -
testsuites/libtests/rtems++/rtems++.scn
ra48b7c44 rd5154d0f 45 45 SELF - self object set priority to 25 - RTEMS[00] successful completion 46 46 SELF - self object set priority to original - RTEMS[00] successful completion, priority was 25 47 TA1 - get note - RTEMS[00] successful completion, note is 048 TA1 - get with bad notepad number - RTEMS[10] number was invalid, note is 049 TA1 - set note to 0xDEADBEEF - RTEMS[00] successful completion50 TA1 - get note - RTEMS[00] successful completion, note is 0xDEADBEEF51 TA1 - set note to original value - RTEMS[00] successful completion52 TA1 - connected object get note - RTEMS[00] successful completion, notepad is 053 TA1 - connected object get with bad notepad number - RTEMS[10] number was invalid, note is 054 TA1 - connected object set note to 0xDEADBEEF - RTEMS[00] successful completion55 TA1 - connected object get note - RTEMS[00] successful completion, note is 0xDEADBEEF56 TA1 - connected object set note to original value - RTEMS[00] successful completion57 SELF - self object get note - RTEMS[00] successful completion, note is 058 SELF - self object get with bad notepad number - RTEMS[10] number was invalid, note is 059 SELF - self object set note to 0xDEADBEEF - RTEMS[00] successful completion60 SELF - self object get note - RTEMS[00] successful completion, notepad is 0xDEADBEEF61 SELF - self object set note to original value - RTEMS[00] successful completion62 47 END Task Class test 63 48 <pause - screen 3> -
testsuites/mptests/Makefile.am
ra48b7c44 rd5154d0f 1 1 ACLOCAL_AMFLAGS = -I ../aclocal 2 2 3 _SUBDIRS = mp01 mp02mp03 mp04 mp05 mp06 mp07 mp08 mp09 mp10 mp11 mp12 mp13 \3 _SUBDIRS = mp01 mp03 mp04 mp05 mp06 mp07 mp08 mp09 mp10 mp11 mp12 mp13 \ 4 4 mp14 5 5 -
testsuites/mptests/configure.ac
ra48b7c44 rd5154d0f 36 36 mp01/node1/Makefile 37 37 mp01/node2/Makefile 38 mp02/Makefile39 mp02/node1/Makefile40 mp02/node2/Makefile41 38 mp03/Makefile 42 39 mp03/node1/Makefile -
testsuites/sptests/Makefile.am
ra48b7c44 rd5154d0f 13 13 sp70 sp71 sp72 sp73 sp74 sp75 sp76 sp77 sp2038 \ 14 14 spassoc01 spchain spclockget spcoverage spobjgetnext \ 15 sp notepad01 spnotepad02 spprintk spprivenv01 sprbtree01 spsize spstkalloc \15 spprintk spprivenv01 sprbtree01 spsize spstkalloc \ 16 16 spstkalloc02 spthreadq01 spwatchdog spwkspace \ 17 17 sperror01 sperror02 sperror03 \ -
testsuites/sptests/configure.ac
ra48b7c44 rd5154d0f 223 223 spmsgq_err01/Makefile 224 224 spmsgq_err02/Makefile 225 spnotepad01/Makefile226 spnotepad02/Makefile227 225 spnsext01/Makefile 228 226 spobjgetnext/Makefile -
testsuites/sptests/sp07/init.c
ra48b7c44 rd5154d0f 211 211 assert_extension_counts( &Task_restarted[ 0 ], 0x0 ); 212 212 213 /*214 * We know this is deprecated and don't want a warning on every BSP built.215 */216 #pragma GCC diagnostic push217 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"218 219 status = rtems_task_set_note( Task_id[ 1 ], RTEMS_NOTEPAD_8, 4 );220 directive_failed( status, "task_set_node of TA1" );221 printf( "INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 " );222 puts ( "to TA1's priority: 04" );223 224 status = rtems_task_set_note( Task_id[ 2 ], RTEMS_NOTEPAD_8, 4 );225 directive_failed( status, "task_set_node of TA2" );226 printf( "INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 " );227 puts ( "to TA2's priority: 04");228 229 #pragma GCC diagnostic pop230 231 213 status = rtems_task_delete( RTEMS_SELF ); 232 214 directive_failed( status, "rtems_task_delete of RTEMS_SELF" ); -
testsuites/sptests/sp07/sp07.scn
ra48b7c44 rd5154d0f 11 11 rtems_extension_ident - bad name -- RTEMS_INVALID_ADDRESS 12 12 rtems_extension_create - harmless -- OK 13 INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 to TA1's priority: 0414 INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 to TA2's priority: 0415 13 <pause> 16 14 TA1 - rtems_task_set_priority - get initial priority of self: 04 17 TA1 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 0418 TA1 - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8: 0319 15 TA1 - rtems_task_set_priority - set TA2's priority: 03 20 TA2 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 0321 TA2 - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8: 0222 16 TA2 - rtems_task_set_priority - set TA1's priority: 02 23 TA1 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 0224 TA1 - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8: 0125 17 TA1 - rtems_task_set_priority - set TA2's priority: 01 26 TA2 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 0127 18 TA2 - rtems_task_suspend - suspend TA1 28 19 TA2 - rtems_task_set_priority - set priority of TA1 ( blocked ) -
testsuites/sptests/sp07/system.h
ra48b7c44 rd5154d0f 65 65 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER 66 66 67 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS68 69 67 #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 2 70 68 #define CONFIGURE_TICKS_PER_TIMESLICE 100 -
testsuites/sptests/sp07/task1.c
ra48b7c44 rd5154d0f 45 45 46 46 while( FOREVER ) { 47 status = rtems_task_get_note( my_id, RTEMS_NOTEPAD_8, &the_priority );48 directive_failed( status, "rtems_task_get_note" );49 printf(50 "TA1 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - "51 "current priority: %02" PRIdrtems_task_priority "\n",52 the_priority53 );54 55 47 if ( --the_priority == 0 ) { 56 48 puts( "TA1 - rtems_task_suspend - suspend TA2" ); … … 70 62 71 63 printf( 72 "TA1 - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8: "73 "%02" PRIdrtems_task_priority "\n",74 the_priority75 );76 status = rtems_task_set_note( Task_id[ 2 ], RTEMS_NOTEPAD_8, the_priority );77 directive_failed( status, "rtems_task_set_note" );78 79 printf(80 64 "TA1 - rtems_task_set_priority - set TA2's priority: " 81 65 "%02" PRIdrtems_task_priority "\n", -
testsuites/sptests/sp07/task2.c
ra48b7c44 rd5154d0f 28 28 29 29 while( FOREVER ) { 30 31 status = rtems_task_get_note( RTEMS_SELF, RTEMS_NOTEPAD_8, &the_priority );32 directive_failed( status, "rtems_task_get_note" );33 printf(34 "TA2 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - "35 "current priority: %02" PRIdrtems_task_priority "\n",36 the_priority37 );38 39 30 if ( --the_priority == 0 ) { 40 31 puts( "TA2 - rtems_task_suspend - suspend TA1" ); … … 60 51 61 52 printf( 62 "TA2 - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8: "63 "%02" PRIdrtems_task_priority "\n",64 the_priority65 );66 status = rtems_task_set_note(Task_id[ 1 ], RTEMS_NOTEPAD_8, the_priority);67 directive_failed( status, "rtems_task_set_note" );68 69 printf(70 53 "TA2 - rtems_task_set_priority - set TA1's priority: " 71 54 "%02" PRIdrtems_task_priority "\n", -
testsuites/sptests/sptask_err04/sptask_err04.scn
ra48b7c44 rd5154d0f 2 2 TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID 3 3 TA1 - rtems_task_delete - RTEMS_INVALID_ID 4 TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS5 TA1 - rtems_task_get_note - RTEMS_INVALID_NUMBER6 TA1 - rtems_task_get_note - RTEMS_INVALID_ID7 TA1 - rtems_task_get_note - RTEMS_INVALID_ID8 4 TA1 - rtems_task_ident - RTEMS_INVALID_ADDRESS 9 5 TA1 - rtems_task_ident - global RTEMS_INVALID_NAME … … 16 12 TA1 - rtems_task_set_priority - RTEMS_INVALID_PRIORITY 17 13 TA1 - rtems_task_set_priority - RTEMS_INVALID_ID 18 TA1 - rtems_task_set_note - RTEMS_INVALID_NUMBER19 TA1 - rtems_task_set_note - RTEMS_INVALID_ID20 14 TA1 - rtems_task_start - RTEMS_INVALID_ID 21 15 TA1 - rtems_task_start - RTEMS_INCORRECT_STATE -
testsuites/sptests/sptask_err04/system.h
ra48b7c44 rd5154d0f 30 30 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER 31 31 32 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS33 34 32 #define CONFIGURE_MAXIMUM_TASKS 2 35 33 -
testsuites/sptests/sptask_err04/task1.c
ra48b7c44 rd5154d0f 28 28 ) 29 29 { 30 uint32_t notepad_value;31 30 rtems_id self_id; 32 31 rtems_task_priority previous_priority; … … 51 50 puts( "TA1 - rtems_task_delete - RTEMS_INVALID_ID" ); 52 51 53 /** START OF NOTEPAD TESTS **/ 52 /* NULL param */ 53 status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, NULL ); 54 fatal_directive_status( 55 status, 56 RTEMS_INVALID_ADDRESS, 57 "rtems_task_ident NULL param" 58 ); 59 puts( "TA1 - rtems_task_ident - RTEMS_INVALID_ADDRESS" ); 60 61 /* OK */ 62 status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &self_id ); 63 directive_failed( status, "rtems_task_ident of self" ); 64 if ( self_id != Task_id[ 1 ] ) { 65 puts( "ERROR - rtems_task_ident - incorrect ID returned!" ); 66 } 67 puts( "TA1 - rtems_task_ident - current task RTEMS_SUCCESSFUL" ); 68 69 status = rtems_task_ident( 100, RTEMS_SEARCH_ALL_NODES, &Junk_id ); 70 fatal_directive_status( 71 status, 72 RTEMS_INVALID_NAME, 73 "rtems_task_ident with illegal name (local)" 74 ); 75 puts( "TA1 - rtems_task_ident - global RTEMS_INVALID_NAME" ); 76 77 status = rtems_task_ident( 100, 1, &Junk_id ); 78 fatal_directive_status( 79 status, 80 RTEMS_INVALID_NAME, 81 "rtems_task_ident with illegal name (global)" 82 ); 83 puts( "TA1 - rtems_task_ident - local RTEMS_INVALID_NAME" ); 54 84 55 85 /* 56 * We know this is deprecated and don't want a warning on every BSP built.86 * This one case is different if MP is enabled/disabled. 57 87 */ 58 #pragma GCC diagnostic push59 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"60 88 61 /* NULL return */ 62 status = rtems_task_get_note( RTEMS_SELF, RTEMS_NOTEPAD_FIRST, NULL ); 63 fatal_directive_status( 64 status, 65 RTEMS_INVALID_ADDRESS, 66 "rtems_task_get_note with NULL param" 67 ); 68 puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS" ); 89 status = rtems_task_ident( 100, 2, &Junk_id ); 90 #if defined(RTEMS_MULTIPROCESSING) 91 fatal_directive_status( 92 status, 93 RTEMS_INVALID_NODE, 94 "rtems_task_ident with illegal node" 95 ); 96 #else 97 fatal_directive_status( 98 status, 99 RTEMS_INVALID_NAME, 100 "rtems_task_ident with illegal node" 101 ); 102 #endif 103 puts( "TA1 - rtems_task_ident - RTEMS_INVALID_NODE" ); 69 104 70 /* note too high */ 71 status = rtems_task_get_note( RTEMS_SELF, 100, ¬epad_value ); 72 fatal_directive_status( 73 status, 74 RTEMS_INVALID_NUMBER, 75 "rtems_task_get_note with illegal notepad" 76 ); 77 puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_NUMBER" ); 105 status = rtems_task_restart( 100, 0 ); 106 fatal_directive_status( 107 status, 108 RTEMS_INVALID_ID, 109 "rtems_task_restart with illegal id" 110 ); 111 puts( "TA1 - rtems_task_restart - RTEMS_INVALID_ID" ); 78 112 79 /* bad Id */ 80 status = rtems_task_get_note( 100, RTEMS_NOTEPAD_LAST, ¬epad_value ); 81 fatal_directive_status( 82 status, 83 RTEMS_INVALID_ID, 84 "rtems_task_get_note with illegal id" 85 ); 86 puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID" ); 113 status = rtems_task_resume( 100 ); 114 fatal_directive_status( 115 status, 116 RTEMS_INVALID_ID, 117 "rtems_task_resume with illegal id" 118 ); 119 puts( "TA1 - rtems_task_resume - RTEMS_INVALID_ID" ); 87 120 88 /* unused Id so invalid now */ 89 status = rtems_task_get_note( 90 Task_id[ 0 ], 91 RTEMS_NOTEPAD_LAST, 92 ¬epad_value 93 ); 94 fatal_directive_status( 95 status, 96 RTEMS_INVALID_ID, 97 "rtems_task_get_note with illegal id" 98 ); 99 puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID" ); 121 status = rtems_task_resume( RTEMS_SELF ); 122 fatal_directive_status( 123 status, 124 RTEMS_INCORRECT_STATE, 125 "rtems_task_resume of ready task" 126 ); 127 puts( "TA1 - rtems_task_resume - RTEMS_INCORRECT_STATE" ); 100 128 101 status = rtems_task_get_note( 102 _RTEMS_tasks_Information.Objects.minimum_id + (3L<<OBJECTS_API_START_BIT), 103 RTEMS_NOTEPAD_LAST, 104 ¬epad_value 105 ); 106 fatal_directive_status( 107 status, 108 RTEMS_INVALID_ID, 109 "rtems_task_get_note with illegal id" 110 ); 129 /* NULL param */ 130 status = rtems_task_set_priority( RTEMS_SELF, RTEMS_CURRENT_PRIORITY, NULL ); 131 fatal_directive_status( 132 status, 133 RTEMS_INVALID_ADDRESS, 134 "rtems_task_set_priority with NULL param" 135 ); 136 puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_ADDRESS" ); 111 137 112 status = rtems_task_get_note( 113 rtems_build_id( OBJECTS_CLASSIC_API, 2, 1, 1 ), 114 RTEMS_NOTEPAD_LAST, 115 ¬epad_value 116 ); 117 fatal_directive_status( 118 status, 119 RTEMS_INVALID_ID, 120 "rtems_task_get_note with non-task ID" 121 ); 138 /* bad priority */ 139 status = rtems_task_set_priority( RTEMS_SELF, 512, &previous_priority ); 140 fatal_directive_status( 141 status, 142 RTEMS_INVALID_PRIORITY, 143 "rtems_task_set_priority with illegal priority" 144 ); 145 puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_PRIORITY" ); 122 146 123 /* NULL param */ 124 status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, NULL ); 125 fatal_directive_status( 126 status, 127 RTEMS_INVALID_ADDRESS, 128 "rtems_task_ident NULL param" 129 ); 130 puts( "TA1 - rtems_task_ident - RTEMS_INVALID_ADDRESS" ); 131 132 /* OK */ 133 status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &self_id ); 134 directive_failed( status, "rtems_task_ident of self" ); 135 if ( self_id != Task_id[ 1 ] ) { 136 puts( "ERROR - rtems_task_ident - incorrect ID returned!" ); 137 } 138 puts( "TA1 - rtems_task_ident - current task RTEMS_SUCCESSFUL" ); 139 140 status = rtems_task_ident( 100, RTEMS_SEARCH_ALL_NODES, &Junk_id ); 141 fatal_directive_status( 142 status, 143 RTEMS_INVALID_NAME, 144 "rtems_task_ident with illegal name (local)" 145 ); 146 puts( "TA1 - rtems_task_ident - global RTEMS_INVALID_NAME" ); 147 148 status = rtems_task_ident( 100, 1, &Junk_id ); 149 fatal_directive_status( 150 status, 151 RTEMS_INVALID_NAME, 152 "rtems_task_ident with illegal name (global)" 153 ); 154 puts( "TA1 - rtems_task_ident - local RTEMS_INVALID_NAME" ); 155 156 /* 157 * This one case is different if MP is enabled/disabled. 158 */ 159 160 status = rtems_task_ident( 100, 2, &Junk_id ); 161 #if defined(RTEMS_MULTIPROCESSING) 162 fatal_directive_status( 163 status, 164 RTEMS_INVALID_NODE, 165 "rtems_task_ident with illegal node" 166 ); 167 #else 168 fatal_directive_status( 169 status, 170 RTEMS_INVALID_NAME, 171 "rtems_task_ident with illegal node" 172 ); 173 #endif 174 puts( "TA1 - rtems_task_ident - RTEMS_INVALID_NODE" ); 175 176 status = rtems_task_restart( 100, 0 ); 177 fatal_directive_status( 178 status, 179 RTEMS_INVALID_ID, 180 "rtems_task_restart with illegal id" 181 ); 182 puts( "TA1 - rtems_task_restart - RTEMS_INVALID_ID" ); 183 184 status = rtems_task_resume( 100 ); 185 fatal_directive_status( 186 status, 187 RTEMS_INVALID_ID, 188 "rtems_task_resume with illegal id" 189 ); 190 puts( "TA1 - rtems_task_resume - RTEMS_INVALID_ID" ); 191 192 status = rtems_task_resume( RTEMS_SELF ); 193 fatal_directive_status( 194 status, 195 RTEMS_INCORRECT_STATE, 196 "rtems_task_resume of ready task" 197 ); 198 puts( "TA1 - rtems_task_resume - RTEMS_INCORRECT_STATE" ); 199 200 /* NULL param */ 201 status = rtems_task_set_priority( RTEMS_SELF, RTEMS_CURRENT_PRIORITY, NULL ); 202 fatal_directive_status( 203 status, 204 RTEMS_INVALID_ADDRESS, 205 "rtems_task_set_priority with NULL param" 206 ); 207 puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_ADDRESS" ); 208 209 /* bad priority */ 210 status = rtems_task_set_priority( RTEMS_SELF, 512, &previous_priority ); 211 fatal_directive_status( 212 status, 213 RTEMS_INVALID_PRIORITY, 214 "rtems_task_set_priority with illegal priority" 215 ); 216 puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_PRIORITY" ); 217 218 /* bad Id */ 219 status = rtems_task_set_priority( 100, 8, &previous_priority ); 220 fatal_directive_status( 221 status, 222 RTEMS_INVALID_ID, 223 "rtems_task_set_priority with illegal id" 224 ); 225 puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_ID" ); 226 227 status = rtems_task_set_note( 228 RTEMS_SELF, 229 RTEMS_NOTEPAD_LAST+10, 230 notepad_value 231 ); 232 fatal_directive_status( 233 status, 234 RTEMS_INVALID_NUMBER, 235 "rtems_task_set_note with illegal notepad" 236 ); 237 puts( "TA1 - rtems_task_set_note - RTEMS_INVALID_NUMBER" ); 238 239 status = rtems_task_set_note( 100, RTEMS_NOTEPAD_LAST, notepad_value ); 240 fatal_directive_status( 241 status, 242 RTEMS_INVALID_ID, 243 "rtems_task_set_note with illegal id" 244 ); 245 puts( "TA1 - rtems_task_set_note - RTEMS_INVALID_ID" ); 246 247 #pragma GCC diagnostic pop 248 249 /** END OF NOTEPAD TESTS **/ 147 /* bad Id */ 148 status = rtems_task_set_priority( 100, 8, &previous_priority ); 149 fatal_directive_status( 150 status, 151 RTEMS_INVALID_ID, 152 "rtems_task_set_priority with illegal id" 153 ); 154 puts( "TA1 - rtems_task_set_priority - RTEMS_INVALID_ID" ); 250 155 251 156 status = rtems_task_start( 100, Task_1, 0 ); -
testsuites/tmtests/tm08/system.h
ra48b7c44 rd5154d0f 28 28 #define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER 29 29 30 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS31 32 30 #define CONFIGURE_MAXIMUM_TASKS 3 33 31 #define CONFIGURE_TICKS_PER_TIMESLICE 0 -
testsuites/tmtests/tm08/task1.c
ra48b7c44 rd5154d0f 82 82 rtems_task_priority old_priority; 83 83 rtems_time_of_day time; 84 uint32_t old_note;85 84 uint32_t old_mode; 86 85 … … 187 186 (void) rtems_task_mode( RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode ); 188 187 189 /** START OF NOTEPAD TESTS **/190 191 /*192 * We know this is deprecated and don't want a warning on every BSP built.193 */194 #pragma GCC diagnostic push195 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"196 197 benchmark_timer_initialize();198 for ( index=1 ; index <= OPERATION_COUNT ; index++ )199 (void) rtems_task_set_note( Test_task_id, 8, 10 );200 end_time = benchmark_timer_read();201 202 put_time(203 "rtems_task_set_note: only case",204 end_time,205 OPERATION_COUNT,206 overhead,207 CALLING_OVERHEAD_TASK_SET_NOTE208 );209 210 benchmark_timer_initialize();211 for ( index=1 ; index <= OPERATION_COUNT ; index++ )212 (void) rtems_task_get_note( Test_task_id, 8, &old_note );213 end_time = benchmark_timer_read();214 215 put_time(216 "rtems_task_get_note: only case",217 end_time,218 OPERATION_COUNT,219 overhead,220 CALLING_OVERHEAD_TASK_GET_NOTE221 );222 223 #pragma GCC diagnostic pop224 225 /** END OF NOTEPAD TESTS **/226 227 188 build_time( &time, 1, 1, 1988, 0, 0, 0, 0 ); 228 189 -
testsuites/tmtests/tmoverhd/dumrtems.h
ra48b7c44 rd5154d0f 60 60 #undef rtems_task_create 61 61 #undef rtems_task_delete 62 #undef rtems_task_get_note63 62 #undef rtems_task_ident 64 63 #undef rtems_task_mode 65 64 #undef rtems_task_restart 66 65 #undef rtems_task_resume 67 #undef rtems_task_set_note68 66 #undef rtems_task_set_priority 69 67 #undef rtems_task_start … … 185 183 #define rtems_task_delete( tid ) \ 186 184 Empty_directive() 187 #define rtems_task_get_note( tid, notepad, note ) \188 Empty_directive()189 185 #define rtems_task_ident( name, node, tid ) \ 190 186 Empty_directive() … … 194 190 Empty_directive() 195 191 #define rtems_task_resume( tid ) \ 196 Empty_directive()197 #define rtems_task_set_note( tid, notepad, note ) \198 192 Empty_directive() 199 193 #define rtems_task_set_priority( tid, priority, ppriority ) \ -
testsuites/tmtests/tmoverhd/testtask.c
ra48b7c44 rd5154d0f 69 69 rtems_mode mask RTEMS_GCC_NOWARN_UNUSED; 70 70 rtems_mode out_mode RTEMS_GCC_NOWARN_UNUSED; 71 uint32_t note RTEMS_GCC_NOWARN_UNUSED;72 71 rtems_time_of_day time RTEMS_GCC_NOWARN_UNUSED; 73 72 rtems_interval timeout RTEMS_GCC_NOWARN_UNUSED; … … 87 86 in_mode = RTEMS_NO_PREEMPT; 88 87 mask = RTEMS_PREEMPT_MASK; 89 note = 8;90 88 timeout = 100; 91 89 signals = RTEMS_SIGNAL_1 | RTEMS_SIGNAL_3; … … 252 250 ); 253 251 254 /* rtems_task_get_note */255 256 benchmark_timer_initialize();257 for ( index = 1 ; index <= OPERATION_COUNT ; index ++ )258 (void) rtems_task_get_note( id, 1, note );259 end_time = benchmark_timer_read();260 261 put_time(262 "overhead: rtems_task_get_note",263 end_time,264 OPERATION_COUNT,265 overhead,266 0267 );268 269 /* rtems_task_set_note */270 271 benchmark_timer_initialize();272 for ( index = 1 ; index <= OPERATION_COUNT ; index ++ )273 (void) rtems_task_set_note( id, 1, note );274 end_time = benchmark_timer_read();275 276 put_time(277 "overhead: rtems_task_set_note",278 end_time,279 OPERATION_COUNT,280 overhead,281 0282 );283 284 252 /* rtems_task_wake_when */ 285 253 -
testsuites/tmtests/tmtests_plan.csv
ra48b7c44 rd5154d0f 3 3 "rtems_barrier_ident: only case",tm30,NA,Yes 4 4 ,,, 5 "rtems_clock_get_tod: only case",tm08,NA,Yes6 "rtems_clock_set: only case",tm08,NA,Yes7 5 "rtems_clock_tick: only case",tm25,NA,Yes 8 6 ,,, … … 125 123 "rtems_task_delete: ready task",tm06,NA,Yes 126 124 "rtems_task_delete: suspended task",tm04,NA,Yes 127 "rtems_task_get_note: only case",tm08,NA,Yes128 125 "rtems_task_ident: only case",tm21,NA,Yes 129 "rtems_task_mode: no reschedule",tm08,NA,Yes130 "rtems_task_mode: obtain current mode",tm08,NA,Yes131 "rtems_task_mode: reschedule returns to caller",tm08,NA,Yes132 "rtems_task_mode: reschedule",tm08,NA,Yes133 126 "rtems_task_restart: blocked task preempts caller",tm04,NA,Yes 134 127 "rtems_task_restart: blocked task",tm04,NA,Yes … … 140 133 "rtems_task_resume: task readied preempts caller",tm05,NA,Yes 141 134 "rtems_task_resume: task readied returns to caller",tm06,NA,Yes 142 "rtems_task_set_note: only case",tm08,NA,Yes143 "rtems_task_set_priority: obtain current priority",tm08,NA,Yes144 135 "rtems_task_set_priority: preempts caller",tm17,NA,Yes 145 "rtems_task_set_priority: returns to caller",tm08,NA,Yes146 136 "rtems_task_start: only case",tm04,NA,Yes 147 137 "rtems_task_suspend: calling task",tm05,NA,Yes -
testsuites/tools/generic/sorttimes.in
ra48b7c44 rd5154d0f 67 67 lookup rtems_task_mode: reschedule -- returns to caller 68 68 lookup rtems_task_mode: reschedule -- preempts caller 69 lookup rtems_task_get_note70 lookup rtems_task_set_note71 69 lookup rtems_task_wake_after: yield -- returns to caller 72 70 lookup rtems_task_wake_after: yields -- preempts caller
Note: See TracChangeset
for help on using the changeset viewer.