Changeset d5154d0f in rtems


Ignore:
Timestamp:
12/23/15 20:44:02 (8 years ago)
Author:
Aun-Ali Zaidi <admin@…>
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)
Message:

api: Remove deprecated Notepads

Notepads where a feature of RTEMS' tasks that simply functioned in
the same way as POSIX keys or threaded local storage (TLS). They were
introduced well before per task variables, which are also deprecated,
and were barely used in favor of their POSIX alternatives.

In addition to their scarce usage, Notepads took up unnecessary memory.
For each task:

  • 16 32-bit integers were allocated.
  • A total of 64 bytes per task per thread.

This is especially critical in low memory and safety-critical applications.

They are also defined as uint32_t, and therefore are not guaranteed to
hold a pointer.

Lastly, they are not portable solutions for SMP and uniprocessor systems,
like POSIX keys and TLS.

updates #2493.

Files:
32 deleted
96 edited

Legend:

Unmodified
Added
Removed
  • c/src/ada-tests/ada_mvscn

    ra48b7c44 rd5154d0f  
    1212./sptests/sp19/sp19.scn
    1313./sptests/sp09/sp09.scn
    14 ./sptests/sp07/sp07.scn
    1514./sptests/sp12/sp12.scn
    1615./sptests/sp14/sp14.scn
  • c/src/ada-tests/configure.ac

    ra48b7c44 rd5154d0f  
    118118mptests/mp01/node1/Makefile
    119119mptests/mp01/node2/Makefile
    120 mptests/mp02/Makefile
    121 mptests/mp02/node1/Makefile
    122 mptests/mp02/node2/Makefile
    123120mptests/mp03/Makefile
    124121mptests/mp03/node1/Makefile
  • c/src/ada-tests/mptests/Makefile.am

    ra48b7c44 rd5154d0f  
    11SUBDIRS =
    22SUBDIRS += mp01
    3 SUBDIRS += mp02
    43SUBDIRS += mp03
    54SUBDIRS += mp04
  • c/src/ada-tests/sptests/sp07/ada_sp07.scn

    ra48b7c44 rd5154d0f  
    99TASKS_START - TA4  - started.
    1010TASKS_RESTART - TA3  - restarted.
    11 INIT - task_set_note - set TA1's NOTEPAD_8 to TA1's initial priority:  4
    12 INIT - task_set_note - set TA2's NOTEPAD_8 to TA2's initial priority:  4
    1311<pause>
    1412TA1 - task_set_priority - get initial priority of self:  4
    15 TA1 - task_get_note - get NOTEPAD_8 - current priority:  4
    16 TA1 - task_set_note - set TA2's NOTEPAD_8:  3
    1713TA1 - task_set_priority - set TA2's priority:  3
    18 TA2 - task_get_note - get NOTEPAD_8 - current priority:  3
    19 TA2 - task_set_note - set TA1's NOTEPAD_8:  2
    2014TA2 - task_set_priority - set TA1's priority:  2
    21 TA1 - task_get_note - get NOTEPAD_8 - current priority:  2
    22 TA1 - task_set_note - set TA2's NOTEPAD_8:  1
    2315TA1 - task_set_priority - set TA2's priority:  1
    24 TA2 - task_get_note - get NOTEPAD_8 - current priority:  1
    2516TA2 - task_suspend - suspend TA1
    2617TA2 - task_set_priority - set priority of TA1 ( blocked )
  • c/src/ada-tests/sptests/sp07/sptest.adb

    ra48b7c44 rd5154d0f  
    230230      Flush_Task_Event_Log;
    231231
    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 
    242232      RTEMS.TASKS.DELETE( RTEMS.SELF, STATUS );
    243233      TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_DELETE OF SELF" );
     
    273263
    274264      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;
    282265
    283266         THE_PRIORITY := THE_PRIORITY - 1;
     
    305288
    306289         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             STATUS
    316          );
    317          TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_SET_NOTE" );
    318290
    319291         TEXT_IO.PUT("TA1 - task_set_priority - set TA2's priority: ");
     
    347319      loop
    348320
    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 
    356321         THE_PRIORITY := THE_PRIORITY - 1;
    357322
     
    387352
    388353         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                STATUS
    398             );
    399             TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_SET_NOTE" );
    400354
    401355            TEXT_IO.PUT( "TA2 - task_set_priority - ");
  • c/src/ada-tests/sptests/sp09/ada_sp09.scn

    ra48b7c44 rd5154d0f  
    33INIT - task_restart - INCORRECT_STATE
    44TA1 - task_delete - INVALID_ID
    5 TA1 - task_get_note - INVALID_NUMBER
    6 TA1 - task_get_note - INVALID_ID
    75TA1 - task_ident - current task SUCCESSFUL
    86TA1 - task_ident - global INVALID_NAME
     
    1412TA1 - task_set_priority - INVALID_PRIORITY
    1513TA1 - task_set_priority - INVALID_ID
    16 TA1 - task_set_note - INVALID_NUMBER
    17 TA1 - task_set_note - INVALID_ID
    1814TA1 - task_start - INVALID_ID
    1915TA1 - task_start - INCORRECT_STATE
  • c/src/ada-tests/sptests/sp09/sptest.adb

    ra48b7c44 rd5154d0f  
    149149   procedure SCREEN_1
    150150   is
    151       NOTEPAD_VALUE     : RTEMS.UNSIGNED32 := 0;
    152151      SELF_ID           : RTEMS.ID;
    153152      PREVIOUS_PRIORITY : RTEMS.TASKS.PRIORITY;
     
    162161      );
    163162      TEXT_IO.PUT_LINE( "TA1 - task_delete - INVALID_ID" );
    164 
    165       begin
    166         RTEMS.TASKS.GET_NOTE( RTEMS.SELF,
    167                              RTEMS.NOTEPAD_INDEX'LAST + 10,
    168                              NOTEPAD_VALUE,
    169                              STATUS
    170         );
    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       exception
    178          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          STATUS
    189       );
    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" );
    196163
    197164      RTEMS.TASKS.IDENT(
     
    295262      );
    296263      TEXT_IO.PUT_LINE( "TA1 - task_set_priority - INVALID_ID" );
    297 
    298       begin
    299          RTEMS.TASKS.SET_NOTE( RTEMS.SELF,
    300                               RTEMS.NOTEPAD_INDEX'LAST + 10,
    301                               NOTEPAD_VALUE,
    302                               STATUS
    303          );
    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       exception
    311          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          STATUS
    322       );
    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" );
    329264
    330265      RTEMS.TASKS.START( 100, SPTEST.TASK_1'ACCESS, 0, STATUS );
  • c/src/ada-tests/support/init.c

    ra48b7c44 rd5154d0f  
    4848)
    4949{
    50   return tcb->Object.id; /* Only for sp04 and sp07 */
     50  return tcb->Object.id; /* Only for sp04 */
    5151}
    5252
  • c/src/ada-tests/tmtests/tm08/tmtest.adb

    ra48b7c44 rd5154d0f  
    100100      OLD_PRIORITY : RTEMS.TASKS.PRIORITY;
    101101      OLD_MODE     : RTEMS.MODE;
    102       OLD_NOTE     : RTEMS.NOTEPAD_INDEX;
    103102      TIME         : RTEMS.TIME_OF_DAY;
    104103      STATUS       : RTEMS.STATUS_CODES;
     
    234233      );
    235234
    236       TIMER_DRIVER.INITIALIZE;
    237          for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
    238          loop
    239             RTEMS.TASKS.SET_NOTE(
    240                TMTEST.TASK_ID,
    241                8,
    242                10,
    243                STATUS
    244             );
    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_NOTE
    253       );
    254 
    255       TIMER_DRIVER.INITIALIZE;
    256          for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
    257          loop
    258             RTEMS.TASKS.GET_NOTE(
    259                TMTEST.TASK_ID,
    260                8,
    261                OLD_NOTE,
    262                STATUS
    263             );
    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_NOTE
    272       );
    273 
    274235      TIME := (1988, 1, 1, 0, 0, 0, 0 );
    275236
  • c/src/ada-tests/tmtests/tm08/tmtest.ads

    ra48b7c44 rd5154d0f  
    7070--    + TASK_MODE which does require a reschedule
    7171--    + TASK_MODE which causes a preemption *** TEST_TASK1 executes
    72 --    + TASK_SET_NOTE
    73 --    + TASK_GET_NOTE
    7472--    + CLOCK_SET
    7573--    + CLOCK_GET
  • c/src/ada-tests/tmtests/tmoverhd/dummy_rtems.adb

    ra48b7c44 rd5154d0f  
    151151   end TASK_MODE;
    152152
    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_CODES
    158    ) is
    159       pragma Unreferenced(ID);
    160       pragma Unreferenced(NOTEPAD);
    161    begin
    162 
    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_CODES
    173    ) is
    174       pragma Unreferenced(ID);
    175       pragma Unreferenced(NOTEPAD);
    176       pragma Unreferenced(NOTE);
    177    begin
    178 
    179       RESULT := RTEMS.SUCCESSFUL;
    180 
    181    end TASK_SET_NOTE;
    182 
    183153   procedure TASK_WAKE_WHEN (
    184154      TIME_BUFFER : in     RTEMS.TIME_OF_DAY;
  • c/src/ada-tests/tmtests/tmoverhd/dummy_rtems.ads

    ra48b7c44 rd5154d0f  
    8888   );
    8989
    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_CODES
    95    );
    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_CODES
    102    );
    103 
    10490   procedure TASK_WAKE_WHEN (
    10591      TIME_BUFFER : in     RTEMS.TIME_OF_DAY;
  • c/src/ada-tests/tmtests/tmoverhd/tmtest.adb

    ra48b7c44 rd5154d0f  
    131131      MASK           : RTEMS.MODE;
    132132      OUT_MODE       : RTEMS.MODE;
    133       NOTE           : RTEMS.UNSIGNED32;
    134133      TIME           : RTEMS.TIME_OF_DAY;
    135134      TIMEOUT        : RTEMS.INTERVAL;
     
    332331      );
    333332
    334 -- TASK_GET_NOTE
    335 
    336       TIMER_DRIVER.INITIALIZE;
    337          for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
    338          loop
    339             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          0
    349       );
    350 
    351 -- TASK_SET_NOTE
    352 
    353       TIMER_DRIVER.INITIALIZE;
    354          for INDEX in 1 .. TIME_TEST_SUPPORT.OPERATION_COUNT
    355          loop
    356             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          0
    366       );
    367 
    368333-- TASK_WAKE_WHEN
    369334
  • c/src/ada/rtems-tasks.adb

    ra48b7c44 rd5154d0f  
    204204   end Mode;
    205205
    206    procedure Get_Note
    207      (ID      : in RTEMS.ID;
    208       Notepad : in RTEMS.Notepad_Index;
    209       Note    : out RTEMS.Unsigned32;
    210       Result  : out RTEMS.Status_Codes)
    211    is
    212       function Get_Note_Base
    213         (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    begin
    220 
    221       Result := Get_Note_Base (ID, Notepad, Note_Base'Access);
    222       Note   := Note_Base;
    223 
    224    end Get_Note;
    225 
    226    procedure Set_Note
    227      (ID      : in RTEMS.ID;
    228       Notepad : in RTEMS.Notepad_Index;
    229       Note    : in RTEMS.Unsigned32;
    230       Result  : out RTEMS.Status_Codes)
    231    is
    232       function Set_Note_Base
    233         (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    begin
    239 
    240       Result := Set_Note_Base (ID, Notepad, Note);
    241 
    242    end Set_Note;
    243 
    244206   procedure Variable_Add
    245207     (ID            : in RTEMS.ID;
  • c/src/lib/libbsp/arm/csb336/times

    ra48b7c44 rd5154d0f  
    5656 8 rtems_task_mode: reschedule -- returns to caller                      3
    5757 8 rtems_task_mode: reschedule -- preempts caller                        13
    58  8 rtems_task_set_note                                                   1
    59  8 rtems_task_get_note                                                   1
    6058 8 rtems_clock_set                                                       4
    6159 8 rtems_clock_get                                                       0
  • c/src/lib/libbsp/arm/csb337/times

    ra48b7c44 rd5154d0f  
    5555 8 rtems_task_mode: reschedule -- returns to caller                     12110    11764   6055   
    5656 8 rtems_task_mode: reschedule -- preempts caller                       33043    34773   18338   
    57  8 rtems_task_set_note                                                  11869    11871   4356   
    58  8 rtems_task_get_note                                                  12092    12087   4397   
    5957 8 rtems_clock_set                                                      33141    33145   10160   
    6058 8 rtems_clock_get                                                      2920     2921    811     
  • c/src/lib/libbsp/arm/edb7312/times

    ra48b7c44 rd5154d0f  
    5555   rtems_task_mode: reschedule -- returns to caller                     15
    5656   rtems_task_mode: reschedule -- preempts caller                       52
    57    rtems_task_set_note                                                   4
    58    rtems_task_get_note                                                   4
    5957   rtems_clock_set                                                      14
    6058   rtems_clock_get                                                       1
     
    187185   rtems_rate_monotonic_delete: active                                  21
    188186   rtems_rate_monotonic_period: conclude periods -- caller blocks       23
    189  
  • c/src/lib/libbsp/bfin/TLL6527M/times

    ra48b7c44 rd5154d0f  
    3636*** END OF TEST 6 ***
    3737
     38
    3839*** TIME TEST 7 ***
    39 
    40 
    41 *** TIME TEST 8 ***
    42 rtems_task_set_priority: obtain current priorityrtems_task_mode: reschedule -- preempts caller 0   
    43 rtems_task_set_priority: returns to caller  2
    44 rtems_task_mode: obtain current mode101 0
    45 rtems_task_mode: no reschedule 0
    46 rtems_task_mode: reschedule -- returns to caller
    47  2
    48 rtems_task_set_note 1
    49 rtems_task_get_note 0
    50 rtems_clock_set 2
    51 rtems_clock_get_tod 12
    52 *** END OF TEST 8 ***
    53 
    5440
    5541*** TIME TEST 9 ***
     
    174160*** END OF TEST 29 ***
    175161
    176          
  • c/src/lib/libbsp/bfin/eZKit533/times

    ra48b7c44 rd5154d0f  
    5555   rtems_task_mode: reschedule -- returns to caller                     NC    8    8
    5656   rtems_task_mode: reschedule -- preempts caller                       NC   31   30
    57    rtems_task_set_note                                                  NC    8    8
    58    rtems_task_get_note                                                  NC    9    8
    5957   rtems_clock_set                                                      NC   25   25
    6058   rtems_clock_get                                                      NC    2    2
  • c/src/lib/libbsp/i386/pc386/times_i486dx

    ra48b7c44 rd5154d0f  
    5454   rtems_task_mode: reschedule -- returns to caller                     20   17
    5555   rtems_task_mode: reschedule -- preempts caller                       39   37
    56    rtems_task_set_note                                                   7    5
    57    rtems_task_get_note                                                   7    5
    5856   rtems_clock_set                                                      17   16
    5957   rtems_clock_get                                                       2    1
  • c/src/lib/libbsp/i386/pc386/times_p5

    ra48b7c44 rd5154d0f  
    5959   rtems_task_mode: reschedule -- returns to caller                    264
    6060   rtems_task_mode: reschedule -- preempts caller                      836
    61    rtems_task_set_note                                                 236
    62    rtems_task_get_note                                                 232
    6361   rtems_clock_set                                                     569
    6462   rtems_clock_get                                                     107
  • c/src/lib/libbsp/m68k/av5282/README

    ra48b7c44 rd5154d0f  
    176176rtems_task_restart: suspended task -- preempts caller 68
    177177*** END OF TEST 7 ***
    178 
    179 *** TIME TEST 8 ***
    180 rtems_task_set_priority: obtain current priority 9
    181 rtems_task_set_priority: returns to caller 21
    182 rtems_task_mode: obtain current mode 4
    183 rtems_task_mode: no reschedule 4
    184 rtems_task_mode: reschedule -- returns to caller 13
    185 rtems_task_mode: reschedule -- preempts caller 35
    186 rtems_task_set_note 7
    187 rtems_task_get_note 9
    188 rtems_clock_set 30
    189 rtems_clock_get 0
    190 *** END OF TEST 8 ***
    191178
    192179*** TIME TEST 9 ***
     
    387374rtems_task_set_priority 0
    388375rtems_task_mode 0
    389 rtems_task_get_note 0
    390 rtems_task_set_note 0
    391376rtems_task_wake_when 1
    392377rtems_task_wake_after 0
  • c/src/lib/libbsp/m68k/csb360/times

    ra48b7c44 rd5154d0f  
    5252 8 rtems_task_mode: reschedule -- returns to caller                  13
    5353 8 rtems_task_mode: reschedule -- preempts caller                    35
    54  8 rtems_task_set_note                                               12
    55  8 rtems_task_get_note                                               13
    5654 8 rtems_clock_set                                                   32
    5755 8 rtems_clock_get                                                   3
  • c/src/lib/libbsp/m68k/gen68302/times

    ra48b7c44 rd5154d0f  
    5656   rtems_task_mode: reschedule -- returns to caller                      8
    5757   rtems_task_mode: reschedule -- preempts caller                       39
    58    rtems_task_set_note                                                  13
    59    rtems_task_get_note                                                  13
    6058   rtems_clock_set                                                      33
    6159   rtems_clock_get                                                       3
  • c/src/lib/libbsp/m68k/gen68360/README

    ra48b7c44 rd5154d0f  
    136136        rtems_task_mode: reschedule -- returns to caller 20
    137137        rtems_task_mode: reschedule -- preempts caller 67
    138         rtems_task_get_note 28
    139         rtems_task_set_note 27
    140138        rtems_task_wake_after: yield -- returns to caller 16
    141139        rtems_task_wake_after: yields -- preempts caller 65
  • c/src/lib/libbsp/m68k/idp/times

    ra48b7c44 rd5154d0f  
    5656   rtems_task_mode: reschedule -- returns to caller                      8
    5757   rtems_task_mode: reschedule -- preempts caller                       39
    58    rtems_task_set_note                                                  13
    59    rtems_task_get_note                                                  13
    6058   rtems_clock_set                                                      33
    6159   rtems_clock_get                                                       3
  • c/src/lib/libbsp/m68k/mcf5206elite/times

    ra48b7c44 rd5154d0f  
    3131rtems_task_mode: reschedule -- returns to caller 11
    3232rtems_task_mode: reschedule -- preempts caller 27
    33 rtems_task_set_note 9
    34 rtems_task_get_note 10
    3533rtems_task_set_priority: preempts caller 36
    3634rtems_task_delete: calling task 92
  • c/src/lib/libbsp/m68k/mcf52235/README

    ra48b7c44 rd5154d0f  
    2727following:
    2828
    29 #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
    3029#define CONFIGURE_INIT_TASK_STACK_SIZE x
    3130#define CONFIGURE_MINIMUM_TASK_STACK_SIZE x
     
    8988rtems_task_set_priority 0
    9089rtems_task_mode 0
    91 rtems_task_get_note 0
    92 rtems_task_set_note 0
    9390rtems_task_wake_when 0
    9491rtems_task_wake_after 0
  • c/src/lib/libbsp/m68k/mcf5225x/README

    ra48b7c44 rd5154d0f  
    3030following:
    3131
    32 #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
    33 #define CONFIGURE_DISABLE_CLASSIC_NOTEPADS
    3432#define CONFIGURE_INIT_TASK_STACK_SIZE x
    3533#define CONFIGURE_MINIMUM_TASK_STACK_SIZE x
     
    9391rtems_task_set_priority 0
    9492rtems_task_mode 0
    95 rtems_task_get_note 0
    96 rtems_task_set_note 0
    9793rtems_task_wake_when 0
    9894rtems_task_wake_after 0
  • c/src/lib/libbsp/m68k/mcf5235/README

    ra48b7c44 rd5154d0f  
    182182rtems_task_restart: suspended task -- preempts caller 22
    183183*** END OF TEST 7 ***
    184 
    185 *** TIME TEST 8 ***
    186 rtems_task_set_priority: obtain current priority 4
    187 rtems_task_set_priority: returns to caller 9
    188 rtems_task_mode: obtain current mode 1
    189 rtems_task_mode: no reschedule 1
    190 rtems_task_mode: reschedule -- returns to caller 3
    191 rtems_task_mode: reschedule -- preempts caller 11
    192 rtems_task_set_note 3
    193 rtems_task_get_note 3
    194 rtems_clock_set 9
    195 rtems_clock_get 0
    196 *** END OF TEST 8 ***
    197184
    198185*** TIME TEST 9 ***
     
    393380rtems_task_set_priority 0
    394381rtems_task_mode 0
    395 rtems_task_get_note 0
    396 rtems_task_set_note 0
    397382rtems_task_wake_when 0
    398383rtems_task_wake_after 0
  • c/src/lib/libbsp/m68k/mcf5329/README

    ra48b7c44 rd5154d0f  
    9292rtems_task_restart: suspended task -- preempts caller 15
    9393*** END OF TEST 7 ***
    94 
    95 *** TIME TEST 8 ***
    96 rtems_task_set_priority: obtain current priority 1
    97 rtems_task_set_priority: returns to caller 2
    98 rtems_task_mode: obtain current mode 0
    99 rtems_task_mode: no reschedule 0
    100 rtems_task_mode: reschedule -- returns to caller 1
    101 rtems_task_mode: reschedule -- preempts caller 13
    102 rtems_task_set_note 1
    103 rtems_task_get_note 1
    104 rtems_clock_set 1
    105 rtems_clock_get 4
    106 *** END OF TEST 8 ***
    10794
    10895*** TIME TEST 9 ***
     
    290277rtems_task_set_priority 0
    291278rtems_task_mode 0
    292 rtems_task_get_note 0
    293 rtems_task_set_note 0
    294279rtems_task_wake_when 0
    295280rtems_task_wake_after 0
  • c/src/lib/libbsp/m68k/mrm332/times

    ra48b7c44 rd5154d0f  
    5858   rtems_task_mode: reschedule -- returns to caller                      8
    5959   rtems_task_mode: reschedule -- preempts caller                       39
    60    rtems_task_set_note                                                  13
    61    rtems_task_get_note                                                  13
    6260   rtems_clock_set                                                      33
    6361   rtems_clock_get                                                       3
  • c/src/lib/libbsp/m68k/mvme162/times

    ra48b7c44 rd5154d0f  
    5656   rtems_task_mode: reschedule -- returns to caller                      8
    5757   rtems_task_mode: reschedule -- preempts caller                       39
    58    rtems_task_set_note                                                  13
    59    rtems_task_get_note                                                  13
    6058   rtems_clock_set                                                      33
    6159   rtems_clock_get                                                       3
  • c/src/lib/libbsp/m68k/mvme167/times

    ra48b7c44 rd5154d0f  
    6363rtems_task_restart: suspended task -- preempts caller 44
    6464*** END OF TEST 7 ***
    65 
    66 *** TIME TEST 8 ***
    67 rtems_task_set_priority: obtain current priority 7
    68 rtems_task_set_priority: returns to caller 16
    69 rtems_task_mode: obtain current mode 4
    70 rtems_task_mode: no reschedule 5
    71 rtems_task_mode: reschedule -- returns to caller 11
    72 rtems_task_mode: reschedule -- preempts caller 29
    73 rtems_task_set_note 7
    74 rtems_task_get_note 7
    75 rtems_clock_set 21
    76 rtems_clock_get 0
    77 *** END OF TEST 8 ***
    7865
    7966
     
    300287rtems_task_set_priority 0
    301288rtems_task_mode 0
    302 rtems_task_get_note 0
    303 rtems_task_set_note 0
    304289rtems_task_wake_when 1
    305290rtems_task_wake_after 0
  • c/src/lib/libbsp/m68k/uC5282/TIMES

    ra48b7c44 rd5154d0f  
    4646rtems_task_restart: suspended task -- preempts caller 44
    4747*** END OF TEST 7 ***
    48 
    49 *** TIME TEST 8 ***
    50 rtems_task_set_priority: obtain current priority 6
    51 rtems_task_set_priority: returns to caller 17
    52 rtems_task_mode: obtain current mode 3
    53 rtems_task_mode: no reschedule 3
    54 rtems_task_mode: reschedule -- returns to caller 8
    55 rtems_task_mode: reschedule -- preempts caller 22
    56 rtems_task_set_note 6
    57 rtems_task_get_note 6
    58 rtems_clock_set 22
    59 rtems_clock_get 1
    60 *** END OF TEST 8 ***
    6148
    6249*** TIME TEST 9 ***
  • c/src/lib/libbsp/mips/csb350/times

    ra48b7c44 rd5154d0f  
    5555 8  rtems_task_mode: reschedule -- returns to caller                     7803
    5656 8  rtems_task_mode: reschedule -- preempts caller                       18542
    57  8  rtems_task_set_note                                                  1044
    58  8  rtems_task_get_note                                                  1046
    5957 8  rtems_clock_set                                                      2777
    6058 8  rtems_clock_get                                                      161
  • c/src/lib/libbsp/mips/hurricane/times

    ra48b7c44 rd5154d0f  
    6161   rtems_task_mode: reschedule -- returns to caller                      0  232
    6262   rtems_task_mode: reschedule -- preempts caller                        0  687
    63    rtems_task_set_note                                                   0  101
    64    rtems_task_get_note                                                   0  103
    6563   rtems_clock_set                                                       0  237
    6664   rtems_clock_get                                                       0   16
  • c/src/lib/libbsp/nios2/nios2_iss/times

    ra48b7c44 rd5154d0f  
    5656   rtems_task_mode: reschedule -- returns to caller                      8
    5757   rtems_task_mode: reschedule -- preempts caller                       39
    58    rtems_task_set_note                                                  13
    59    rtems_task_get_note                                                  13
    6058   rtems_clock_set                                                      33
    6159   rtems_clock_get                                                       3
  • c/src/lib/libbsp/no_cpu/no_bsp/times

    ra48b7c44 rd5154d0f  
    5656   rtems_task_mode: reschedule -- returns to caller                      8
    5757   rtems_task_mode: reschedule -- preempts caller                       39
    58    rtems_task_set_note                                                  13
    59    rtems_task_get_note                                                  13
    6058   rtems_clock_set                                                      33
    6159   rtems_clock_get                                                       3
  • c/src/lib/libbsp/powerpc/mbx8xx/times-mbx821

    ra48b7c44 rd5154d0f  
    5454   rtems_task_mode: reschedule -- returns to caller                     75       32
    5555   rtems_task_mode: reschedule -- preempts caller                      292       97
    56    rtems_task_set_note                                                 112       11
    57    rtems_task_get_note                                                 113       11
    5856   rtems_clock_set                                                     250       25
    5957   rtems_clock_get                                                       6        1
  • c/src/lib/libbsp/powerpc/mbx8xx/times-mbx860

    ra48b7c44 rd5154d0f  
    5454   rtems_task_mode: reschedule -- returns to caller                     66       25
    5555   rtems_task_mode: reschedule -- preempts caller                      246       69
    56    rtems_task_set_note                                                  99       11
    57    rtems_task_get_note                                                 100       23
    5856   rtems_clock_set                                                     222       35
    5957   rtems_clock_get                                                       6        1
  • c/src/lib/libbsp/powerpc/motorola_powerpc/times.mcp750

    ra48b7c44 rd5154d0f  
    4949rtems_task_mode: reschedule -- returns to caller___________________1.711
    5050rtems_task_mode: reschedule -- preempts caller_____________________3.304
    51 rtems_task_get_note________________________________________________0.549
    52 rtems_task_set_note________________________________________________0.548
    5351rtems_task_wake_after: yield -- returns to caller__________________3.063
    5452rtems_task_wake_after: yields -- preempts caller___________________3.063
  • c/src/lib/libbsp/powerpc/motorola_powerpc/times.mvme2307

    ra48b7c44 rd5154d0f  
    5858   rtems_task_mode: reschedule -- returns to caller                    5.933
    5959   rtems_task_mode: reschedule -- preempts caller                     22.613
    60    rtems_task_set_note                                                10.115
    61    rtems_task_get_note                                                10.236
    6260   rtems_clock_set                                                    21.466
    6361   rtems_clock_get                                                     2.286
  • c/src/lib/libbsp/powerpc/mpc8260ads/README

    ra48b7c44 rd5154d0f  
    185185        rtems_task_mode: reschedule -- returns to caller 15
    186186        rtems_task_mode: reschedule -- preempts caller 43
    187         rtems_task_get_note 13
    188         rtems_task_set_note 12
    189187        rtems_task_wake_after: yield -- returns to caller 8
    190188        rtems_task_wake_after: yields -- preempts caller 30
  • c/src/lib/libbsp/powerpc/mpc8260ads/times

    ra48b7c44 rd5154d0f  
    5757  rtems_task_mode: reschedule -- returns to caller                      14
    5858  rtems_task_mode: reschedule -- preempts caller                        43
    59   rtems_task_set_note                                                   13 
    60   rtems_task_get_note                                                   12 
    6159  rtems_clock_set                                                       28
    6260  rtems_clock_get                                                        0
  • c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c

    ra48b7c44 rd5154d0f  
    102102    /* retrieve the notepad which possibly holds an extention pointer */
    103103    if (RTEMS_SUCCESSFUL==rtems_task_ident(RTEMS_SELF,RTEMS_LOCAL,&id) &&
     104// FIXME: Deprecated use of Notepads. #2503.
    104105#if 0
    105106/* 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  
    5252   rtems_task_mode: reschedule -- returns to caller                      7
    5353   rtems_task_mode: reschedule -- preempts caller                       37
    54    rtems_task_set_note                                                  13
    55    rtems_task_get_note                                                  13
    5654   rtems_clock_set                                                      27
    5755   rtems_clock_get                                                       1
  • c/src/lib/libbsp/sh/gensh1/times

    ra48b7c44 rd5154d0f  
    5858   rtems_task_mode: reschedule -- returns to caller                      X
    5959   rtems_task_mode: reschedule -- preempts caller                        X
    60    rtems_task_set_note                                                   X
    61    rtems_task_get_note                                                   X
    6260   rtems_clock_set                                                       X
    6361   rtems_clock_get                                                       X
  • c/src/lib/libbsp/sparc/erc32/times

    ra48b7c44 rd5154d0f  
    5555   rtems_task_mode: reschedule -- returns to caller                      8
    5656   rtems_task_mode: reschedule -- preempts caller                       39
    57    rtems_task_set_note                                                  13
    58    rtems_task_get_note                                                  13
    5957   rtems_clock_set                                                      33
    6058   rtems_clock_get                                                       3
  • c/src/lib/libbsp/sparc/leon2/times

    ra48b7c44 rd5154d0f  
    5555   rtems_task_mode: reschedule -- returns to caller                      8
    5656   rtems_task_mode: reschedule -- preempts caller                       39
    57    rtems_task_set_note                                                  13
    58    rtems_task_get_note                                                  13
    5957   rtems_clock_set                                                      33
    6058   rtems_clock_get                                                       3
  • c/src/lib/libbsp/sparc/leon3/times

    ra48b7c44 rd5154d0f  
    5555   rtems_task_mode: reschedule -- returns to caller                      8
    5656   rtems_task_mode: reschedule -- preempts caller                       39
    57    rtems_task_set_note                                                  13
    58    rtems_task_get_note                                                  13
    5957   rtems_clock_set                                                      33
    6058   rtems_clock_get                                                       3
  • c/src/librtems++/include/rtems++/rtemsTask.h

    ra48b7c44 rd5154d0f  
    4747
    4848  Mode control is through the rtemsTaskMode class.
    49 
    50   The rtemsTask class reserved notepad register 31.
    5149
    5250  ------------------------------------------------------------------------ */
     
    126124                                       rtems_task_priority& old_priority);
    127125
    128   // notepad control
    129   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 
    134126  // object id, and name
    135127  const rtems_id id_is() const { return id; }
  • c/src/librtems++/src/rtemsTask.cc

    ra48b7c44 rd5154d0f  
    263263                                                 &old_priority));
    264264}
    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, &note));
    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 }
    277265
    278266void rtemsTask::body(rtems_task_argument )
  • cpukit/libcsupport/src/README

    ra48b7c44 rd5154d0f  
    1111
    1212    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.
    1414
    1515    When task is switched to, the value of global variable _impure_ptr
  • cpukit/libmisc/monitor/README

    ra48b7c44 rd5154d0f  
    8989
    9090    It has no events.
    91     It has a notepad value for notepad 15 which is 0x40606348
    9291    (this is the libc thread state)
    9392
  • cpukit/rtems/Makefile.am

    ra48b7c44 rd5154d0f  
    9191librtems_a_SOURCES += src/taskdelete.c
    9292librtems_a_SOURCES += src/taskgetaffinity.c
    93 librtems_a_SOURCES += src/taskgetnote.c
    9493librtems_a_SOURCES += src/taskgetscheduler.c
    9594librtems_a_SOURCES += src/taskident.c
     
    101100librtems_a_SOURCES += src/taskself.c
    102101librtems_a_SOURCES += src/tasksetaffinity.c
    103 librtems_a_SOURCES += src/tasksetnote.c
    104102librtems_a_SOURCES += src/tasksetpriority.c
    105103librtems_a_SOURCES += src/tasksetscheduler.c
  • cpukit/rtems/include/rtems/rtems/config.h

    ra48b7c44 rd5154d0f  
    5353   */
    5454  uint32_t                    maximum_tasks;
    55 
    56   /**
    57    * This field indicates whether Classic API notepads are
    58    * enabled or disabled.
    59    */
    60   bool                        notepads_enabled;
    6155
    6256  /**
     
    134128
    135129/**
    136  *  This macro returns the value of the notepads enabled field
    137  *  in the Classic API configuration table.
    138  */
    139 #define rtems_configuration_get_notepads_enabled() \
    140         rtems_configuration_get_rtems_api_configuration()->notepads_enabled
    141 
    142 /**
    143130 *  This macro returns the number of Classic API semaphores configured.
    144131 */
  • cpukit/rtems/include/rtems/rtems/taskmp.h

    ra48b7c44 rd5154d0f  
    5555  RTEMS_TASKS_MP_SET_PRIORITY_REQUEST  =  6,
    5656  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     = 11
    6157}   RTEMS_tasks_MP_Remote_operations;
    6258
     
    7066  rtems_name                        name;
    7167  rtems_task_priority               the_priority;
    72   uint32_t                          notepad;
    73   uint32_t                          note;
    7468}   RTEMS_tasks_MP_Packet;
    7569
     
    9791  RTEMS_tasks_MP_Remote_operations operation,
    9892  Objects_Id                       task_id,
    99   rtems_task_priority                 the_priority,
    100   uint32_t                         notepad,
    101   uint32_t                         note
     93  rtems_task_priority              the_priority
    10294);
    10395
  • cpukit/rtems/include/rtems/rtems/tasks.h

    ra48b7c44 rd5154d0f  
    2222 * - set a task's priority
    2323 * - change the current task's mode
    24  * - get a task notepad entry
    25  * - set a task notepad entry
    2624 * - wake up after interval
    2725 * - wake up when specified
     
    110108 */
    111109#define RTEMS_CURRENT_PRIORITY      PRIORITY_MINIMUM
    112 
    113 /** This is used to indicate the lowest numbered notepad */
    114 #define RTEMS_NOTEPAD_FIRST 0
    115 /** This is used to indicate the notepad location 0. */
    116 #define RTEMS_NOTEPAD_0    0
    117 /** This is used to indicate the notepad location 1. */
    118 #define RTEMS_NOTEPAD_1    1
    119 /** This is used to indicate the notepad location 2. */
    120 #define RTEMS_NOTEPAD_2    2
    121 /** This is used to indicate the notepad location 3. */
    122 #define RTEMS_NOTEPAD_3    3
    123 /** This is used to indicate the notepad location 4. */
    124 #define RTEMS_NOTEPAD_4    4
    125 /** This is used to indicate the notepad location 5. */
    126 #define RTEMS_NOTEPAD_5    5
    127 /** This is used to indicate the notepad location 6. */
    128 #define RTEMS_NOTEPAD_6    6
    129 /** This is used to indicate the notepad location 7. */
    130 #define RTEMS_NOTEPAD_7    7
    131 /** This is used to indicate the notepad location 8. */
    132 #define RTEMS_NOTEPAD_8    8
    133 /** This is used to indicate the notepad location 9. */
    134 #define RTEMS_NOTEPAD_9    9
    135 /** This is used to indicate the notepad location 10. */
    136 #define RTEMS_NOTEPAD_10   10
    137 /** This is used to indicate the notepad location 11. */
    138 #define RTEMS_NOTEPAD_11   11
    139 /** This is used to indicate the notepad location 12. */
    140 #define RTEMS_NOTEPAD_12   12
    141 /** This is used to indicate the notepad location 13. */
    142 #define RTEMS_NOTEPAD_13   13
    143 /** This is used to indicate the notepad location 14. */
    144 #define RTEMS_NOTEPAD_14   14
    145 /** This is used to indicate the notepad location 15. */
    146 #define RTEMS_NOTEPAD_15   15
    147 /** This is used to indicate the highest numbered notepad. */
    148 #define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15
    149 
    150 /** This is used to indicate the number of notepads available. */
    151 #define RTEMS_NUMBER_NOTEPADS  (RTEMS_NOTEPAD_LAST+1)
    152110
    153111/**
     
    270228
    271229/**
    272  * @brief RTEMS Get Task Node
    273  *
    274  * @deprecated Notepads are deprecated and will be removed.
    275  *
    276  * This routine implements the rtems_task_get_note directive. The
    277  * value of the indicated notepad for the task associated with ID
    278  * is returned in note.
    279  *
    280  * @param[in] id is the thread id
    281  * @param[in] notepad is the notepad number
    282  * @param[out] note is the pointer to note
    283  *
    284  * @retval RTEMS_SUCCESSFUL if successful or error code if unsuccessful
    285  */
    286 rtems_status_code rtems_task_get_note(
    287   rtems_id    id,
    288   uint32_t    notepad,
    289   uint32_t   *note
    290 ) RTEMS_DEPRECATED;
    291 
    292 /**
    293  * @brief RTEMS Set Task Note
    294  *
    295  * @deprecated Notepads are deprecated and will be removed.
    296  *
    297  * This routine implements the rtems_task_set_note directive. The
    298  * value of the indicated notepad for the task associated with ID
    299  * is returned in note.
    300  *
    301  * @param[in] id is the thread id
    302  * @param[in] notepad is the notepad number
    303  * @param[in] note is the note value
    304  *
    305  * @return This method returns RTEMS_SUCCESSFUL if there was not an
    306  *         error. Otherwise, a status code is returned indicating the
    307  *         source of the error.
    308  */
    309 rtems_status_code rtems_task_set_note(
    310   rtems_id   id,
    311   uint32_t   notepad,
    312   uint32_t   note
    313 ) RTEMS_DEPRECATED;
    314 
    315 /**
    316230 * @brief RTEMS Task Mode
    317231 *
     
    655569 *  the RTEMS API to function correctly.
    656570 *
    657  *  @note Notepads must be the last entry in the structure and memory
    658  *        will be taken away from this structure when allocated if
    659  *        notespads are disabled by the application configuration.
    660571 */
    661572typedef struct {
     
    671582   */
    672583  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;
    682584}  RTEMS_API_Control;
    683585
  • cpukit/rtems/mainpage.h

    ra48b7c44 rd5154d0f  
    686686 * RTEMS internal data structure that can be accessed by an application via
    687687 * user extension routines. The TCB contains a task's name, ID, current
    688  * priority, current and starting states, execution mode, set of notepad
    689  * locations, TCB user extension pointer, scheduling control structures, as
    690  * well as data required by a blocked 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.
    691691 *
    692692 * A task's context is stored in the TCB when a task switch occurs. When the
  • cpukit/rtems/src/taskmp.c

    ra48b7c44 rd5154d0f  
    6565    case RTEMS_TASKS_MP_SET_PRIORITY_REQUEST:
    6666    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:
    7167      break;
    7268  }
     
    8177  RTEMS_tasks_MP_Remote_operations operation,
    8278  Objects_Id                       task_id,
    83   rtems_task_priority              new_priority,
    84   uint32_t                         notepad,
    85   uint32_t                         note
     79  rtems_task_priority              new_priority
    8680)
    8781{
     
    9387    case RTEMS_TASKS_MP_RESUME_REQUEST:
    9488    case RTEMS_TASKS_MP_SET_PRIORITY_REQUEST:
    95     case RTEMS_TASKS_MP_GET_NOTE_REQUEST:
    96     case RTEMS_TASKS_MP_SET_NOTE_REQUEST:
    9789
    9890      the_packet                    = _RTEMS_tasks_MP_Get_packet();
     
    10395      the_packet->Prefix.id         = task_id;
    10496      the_packet->the_priority      = new_priority;
    105       the_packet->notepad           = notepad;
    106       the_packet->note              = note;
    10797
    10898      return _MPCI_Send_request_packet(
     
    119109    case RTEMS_TASKS_MP_RESUME_RESPONSE:
    120110    case RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE:
    121     case RTEMS_TASKS_MP_GET_NOTE_RESPONSE:
    122     case RTEMS_TASKS_MP_SET_NOTE_RESPONSE:
    123111      break;
    124112
     
    148136    case RTEMS_TASKS_MP_RESUME_RESPONSE:
    149137    case RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE:
    150     case RTEMS_TASKS_MP_GET_NOTE_RESPONSE:
    151     case RTEMS_TASKS_MP_SET_NOTE_RESPONSE:
    152138
    153139      the_packet = (RTEMS_tasks_MP_Packet *) the_thread->receive_packet;
     
    171157    case RTEMS_TASKS_MP_RESUME_REQUEST:
    172158    case RTEMS_TASKS_MP_SET_PRIORITY_REQUEST:
    173     case RTEMS_TASKS_MP_GET_NOTE_REQUEST:
    174     case RTEMS_TASKS_MP_SET_NOTE_REQUEST:
    175159      break;
    176160
     
    232216    case RTEMS_TASKS_MP_SUSPEND_RESPONSE:
    233217    case RTEMS_TASKS_MP_RESUME_RESPONSE:
    234     case RTEMS_TASKS_MP_SET_NOTE_RESPONSE:
    235218
    236219      the_thread = _MPCI_Process_response( the_packet_prefix );
     
    274257      _MPCI_Return_packet( the_packet_prefix );
    275258      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->note
    283       );
    284 
    285       _RTEMS_tasks_MP_Send_response_packet(
    286         RTEMS_TASKS_MP_GET_NOTE_RESPONSE,
    287         _Thread_Executing
    288       );
    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->note
    306       );
    307 
    308       _RTEMS_tasks_MP_Send_response_packet(
    309         RTEMS_TASKS_MP_SET_NOTE_RESPONSE,
    310         _Thread_Executing
    311       );
    312       break;
    313259  }
    314260}
  • cpukit/rtems/src/taskresume.c

    ra48b7c44 rd5154d0f  
    4545          RTEMS_TASKS_MP_RESUME_REQUEST,
    4646          id,
    47           0,          /* Not used */
    48           0,          /* Not used */
    49           0           /* Not used */
     47          0          /* Not used */
    5048        );
    5149#endif
  • cpukit/rtems/src/tasksetpriority.c

    ra48b7c44 rd5154d0f  
    6464          RTEMS_TASKS_MP_SET_PRIORITY_REQUEST,
    6565          id,
    66           new_priority,
    67           0,          /* Not used */
    68           0           /* Not used */
     66          new_priority
    6967      );
    7068#endif
  • cpukit/rtems/src/tasksuspend.c

    ra48b7c44 rd5154d0f  
    4545        RTEMS_TASKS_MP_SUSPEND_REQUEST,
    4646        id,
    47         0,          /* Not used */
    48         0,          /* Not used */
    49         0           /* Not used */
     47        0          /* Not used */
    5048      );
    5149#endif
  • cpukit/sapi/include/confdefs.h

    ra48b7c44 rd5154d0f  
    20862086    (CONFIGURE_MAXIMUM_TASKS + CONFIGURE_LIBBLOCK_TASKS)
    20872087
    2088   /*
    2089    * Classic API notepads are a deprecated feature and will be removed
    2090    * 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   #endif
    2095   #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS)
    2096     #warning "Classic API Notepads are deprecated and will be removed."
    2097   #endif
    2098 
    2099   /** This configuration parameter enables/disables Classic API notepads. */
    2100   #ifdef CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
    2101     #define CONFIGURE_NOTEPADS_ENABLED           TRUE
    2102   #else
    2103     #define CONFIGURE_NOTEPADS_ENABLED           FALSE
    2104   #endif
    2105 
    21062088  /**
    21072089   * This macro calculates the memory required for task variables.
     
    33023284    } Scheduler;
    33033285    RTEMS_API_Control API_RTEMS;
    3304     #if defined(CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS)
    3305       uint32_t Notepads[ RTEMS_NUMBER_NOTEPADS ] RTEMS_DEPRECATED;
    3306     #endif
    33073286    #ifdef RTEMS_POSIX_API
    33083287      POSIX_API_Control API_POSIX;
     
    33553334  rtems_api_configuration_table Configuration_RTEMS_API = {
    33563335    CONFIGURE_TASKS,
    3357     CONFIGURE_NOTEPADS_ENABLED,
    33583336    CONFIGURE_MAXIMUM_TIMERS + CONFIGURE_TIMER_FOR_SHARED_MEMORY_DRIVER,
    33593337    CONFIGURE_SEMAPHORES,
  • cpukit/sapi/include/rtems/extension.h

    ra48b7c44 rd5154d0f  
    8989 * available for the dynamic extensions. This set of pointers is an extension
    9090 * 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.
    9492 *
    9593 * The TCB extension is an array of pointers in the TCB. The index into the
  • cpukit/score/include/rtems/score/thread.h

    ra48b7c44 rd5154d0f  
    908908 * The thread control block contains fields that point to application
    909909 * configuration dependent memory areas, like the scheduler information, the
    910  * API control blocks, the user extension context table, the RTEMS notepads and
    911  * the Newlib re-entrancy support.  Account for these areas in the
    912  * configuration and avoid 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.
    913913 *
    914914 * This array is provided via <rtems/confdefs.h>.
  • doc/user/conf.t

    ra48b7c44 rd5154d0f  
    594594require the addition of a new configuration parameter to specify the
    595595number of tasks which enable floating point support.
    596 
    597 @c
    598 @c === CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS ===
    599 @c
    600 @subsection Enable Classic API Notepads
    601 
    602 @findex CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
    603 
    604 @table @b
    605 @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 table
    618 
    619 @subheading DESCRIPTION:
    620 @code{CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS} should be defined if the
    621 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/thread
    626 plus the allocation overhead. Notepads are rarely used in applications
    627 and this can save significant memory in a low RAM system. Classic API
    628 Notepads are deprecated, and this option is expected to be obsolete in
    629 the near future.
    630 
    631 @c
    632 @c === CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS ===
    633 @c
    634 @subsection Disable Classic API Notepads
    635 
    636 @findex CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS
    637 
    638 @table @b
    639 @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 table
    652 
    653 @subheading DESCRIPTION:
    654 @code{CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS} is deprecated. If users
    655 want to have support for Classic API Notepads, they should use
    656 @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/thread
    661 plus the allocation overhead. Notepads are rarely used in applications
    662 and this can save significant memory in a low RAM system. Classic API
    663 Notepads are deprecated, and this option is expected to be obsolete in
    664 the near future.
    665596
    666597@c
  • doc/user/intr.t

    ra48b7c44 rd5154d0f  
    190190
    191191@itemize
    192 @item rtems_task_get_note
    193 @item rtems_task_set_note
    194192@item rtems_task_suspend
    195193@item rtems_task_resume
  • doc/user/task.t

    ra48b7c44 rd5154d0f  
    2626@item @code{@value{DIRPREFIX}task_set_priority} - Set task priority
    2727@item @code{@value{DIRPREFIX}task_mode} - Change current task's mode
    28 @item @code{@value{DIRPREFIX}task_get_note} - Get task notepad entry
    29 @item @code{@value{DIRPREFIX}task_set_note} - Set task notepad entry
    3028@item @code{@value{DIRPREFIX}task_wake_after} - Wake up after interval
    3129@item @code{@value{DIRPREFIX}task_wake_when} - Wake up when specified 
     
    8280accessed by an application via user extension routines.  The TCB
    8381contains a task's name, ID, current priority, current and
    84 starting states, execution mode, set of notepad locations, TCB
    85 user extension pointer, scheduling control structures, as well
    86 as data required by a blocked task.
     82starting states, execution mode, TCB user extension pointer,
     83scheduling control structures, as well as data required by a
     84blocked task.
    8785
    8886A task's context is stored in the TCB when a task switch occurs.
     
    636634directive resets the mode of a task to its
    637635original value.
    638 
    639 @subsection Notepad Locations
    640 
    641 RTEMS provides sixteen notepad locations for each task.  Each
    642 notepad location may contain a note consisting of four bytes of
    643 information.  RTEMS provides two directives,
    644 @code{@value{DIRPREFIX}task_set_note} and
    645 @code{@value{DIRPREFIX}task_get_note}, that enable a user
    646 to access and change the
    647 notepad locations.  The @code{@value{DIRPREFIX}task_set_note}
    648 directive enables the user
    649 to set a task's notepad entry to a specified note.  The
    650 @code{@value{DIRPREFIX}task_get_note}
    651 directive allows the user to obtain the note
    652 contained in any one of the sixteen notepads of a specified task.
    653 Notepads are deprecated and will be removed.
    654636
    655637@subsection Task Deletion
     
    14831465@page
    14841466
    1485 @subsection TASK_GET_NOTE - Get task notepad entry
    1486 
    1487 @cindex get task notepad entry
    1488 
    1489 @subheading CALLING SEQUENCE:
    1490 
    1491 @ifset is-C
    1492 @findex rtems_task_get_note
    1493 @example
    1494 rtems_status_code rtems_task_get_note(
    1495   rtems_id  id,
    1496   uint32_t  notepad,
    1497   uint32_t *note
    1498 );
    1499 @end example
    1500 @end ifset
    1501 
    1502 @ifset is-Ada
    1503 @example
    1504 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_Codes
    1509 );
    1510 @end example
    1511 @end ifset
    1512 
    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 location
    1518 
    1519 @subheading DESCRIPTION:
    1520 This directive returns the note contained in the notepad
    1521 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 the
    1533 @c sixteen notepad locations.
    1534 
    1535 The sixteen notepad locations can be accessed using the constants
    1536 @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 the
    1539 local node will generate a request to the remote node to obtain
    1540 the notepad entry of the specified task.
    1541 
    1542 @page
    1543 
    1544 @subsection TASK_SET_NOTE - Set task notepad entry
    1545 
    1546 @cindex set task notepad entry
    1547 
    1548 @subheading CALLING SEQUENCE:
    1549 
    1550 @ifset is-C
    1551 @findex rtems_task_set_note
    1552 @example
    1553 rtems_status_code rtems_task_set_note(
    1554   rtems_id  id,
    1555   uint32_t  notepad,
    1556   uint32_t  note
    1557 );
    1558 @end example
    1559 @end ifset
    1560 
    1561 @ifset is-Ada
    1562 @example
    1563 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_Codes
    1568 );
    1569 @end example
    1570 @end ifset
    1571 
    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 location
    1576 
    1577 @subheading DESCRIPTION:
    1578 This directive is deprecated and will be removed.
    1579 
    1580 This directive sets the notepad entry for the task specified by
    1581 id to the value note.
    1582 
    1583 @subheading NOTES:
    1584 If id is set to @code{@value{RPREFIX}SELF}, the calling
    1585 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 the
    1591 @c sixteen notepad locations.
    1592 
    1593 The sixteen notepad locations can be accessed using the constants
    1594 @code{@value{RPREFIX}NOTEPAD_0} through @code{@value{RPREFIX}NOTEPAD_15}.
    1595 
    1596 Setting a notepad location of a global task which does not
    1597 reside on the local node will generate a request to the remote
    1598 node to set the specified notepad entry.
    1599 
    1600 @page
    1601 
    16021467@subsection TASK_WAKE_AFTER - Wake up after interval
    16031468
  • doc/user/userext.t

    ra48b7c44 rd5154d0f  
    135135block.  This set of pointers is an extension of the TCB and can
    136136be 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.
     137extension functions.
    142138
    143139The TCB extension is an array of pointers in the TCB. The
  • testsuites/PROBLEMS

    ra48b7c44 rd5154d0f  
    2121sp04 - hangs at end of tests.
    2222sp06 - rtems_task_restart of TA3 FAILED -- expected (0) got (4)
    23 sp07, sp14 - hang in middle of tests
     23sp14 - hang in middle of tests
    2424sp13, sp15 - terminate properly, but output at end is missing.
    2525sp16 - _Internal_error_Occurred.
  • testsuites/libtests/rtems++/System.h

    ra48b7c44 rd5154d0f  
    124124#define CONFIGURE_TICKS_PER_TIMESLICE       100
    125125
    126 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
    127126#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    128127
  • testsuites/libtests/rtems++/Task1.cc

    ra48b7c44 rd5154d0f  
    260260  printf("%s, priority was %" PRIirtems_task_priority "\n", task_2.last_status_string(), priority);
    261261
    262   uint32_t   current_note;
    263   uint32_t   note;
    264 
    265   // notepad registers for this object
    266 
    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 object
    288 
    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 object
    310 
    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 
    331262  printf(" END Task Class test\n");
    332263}
  • testsuites/libtests/rtems++/rtems++.scn

    ra48b7c44 rd5154d0f  
    4545SELF - self object set priority to 25 - RTEMS[00] successful completion
    4646SELF - self object set priority to original - RTEMS[00] successful completion, priority was 25
    47 TA1  - get note - RTEMS[00] successful completion, note is 0
    48 TA1  - get with bad notepad number - RTEMS[10] number was invalid, note is 0
    49 TA1  - set note to 0xDEADBEEF - RTEMS[00] successful completion
    50 TA1  - get note - RTEMS[00] successful completion, note is 0xDEADBEEF
    51 TA1  - set note to original value - RTEMS[00] successful completion
    52 TA1  - connected object get note - RTEMS[00] successful completion, notepad is 0
    53 TA1  - connected object get with bad notepad number - RTEMS[10] number was invalid, note is 0
    54 TA1  - connected object set note to 0xDEADBEEF - RTEMS[00] successful completion
    55 TA1  - connected object get note - RTEMS[00] successful completion, note is 0xDEADBEEF
    56 TA1  - connected object set note to original value - RTEMS[00] successful completion
    57 SELF - self object get note - RTEMS[00] successful completion, note is 0
    58 SELF - self object get with bad notepad number - RTEMS[10] number was invalid, note is 0
    59 SELF - self object set note to 0xDEADBEEF - RTEMS[00] successful completion
    60 SELF - self object get note - RTEMS[00] successful completion, notepad is 0xDEADBEEF
    61 SELF - self object set note to original value - RTEMS[00] successful completion
    6247 END Task Class test
    6348<pause - screen 3>
  • testsuites/mptests/Makefile.am

    ra48b7c44 rd5154d0f  
    11ACLOCAL_AMFLAGS = -I ../aclocal
    22
    3 _SUBDIRS = mp01 mp02 mp03 mp04 mp05 mp06 mp07 mp08 mp09 mp10 mp11 mp12 mp13 \
     3_SUBDIRS = mp01     mp03 mp04 mp05 mp06 mp07 mp08 mp09 mp10 mp11 mp12 mp13 \
    44    mp14
    55
  • testsuites/mptests/configure.ac

    ra48b7c44 rd5154d0f  
    3636mp01/node1/Makefile
    3737mp01/node2/Makefile
    38 mp02/Makefile
    39 mp02/node1/Makefile
    40 mp02/node2/Makefile
    4138mp03/Makefile
    4239mp03/node1/Makefile
  • testsuites/sptests/Makefile.am

    ra48b7c44 rd5154d0f  
    1313    sp70 sp71 sp72 sp73 sp74 sp75 sp76 sp77 sp2038 \
    1414    spassoc01 spchain spclockget spcoverage spobjgetnext \
    15     spnotepad01 spnotepad02 spprintk spprivenv01 sprbtree01 spsize spstkalloc \
     15    spprintk spprivenv01 sprbtree01 spsize spstkalloc \
    1616    spstkalloc02 spthreadq01 spwatchdog spwkspace \
    1717    sperror01 sperror02 sperror03 \
  • testsuites/sptests/configure.ac

    ra48b7c44 rd5154d0f  
    223223spmsgq_err01/Makefile
    224224spmsgq_err02/Makefile
    225 spnotepad01/Makefile
    226 spnotepad02/Makefile
    227225spnsext01/Makefile
    228226spobjgetnext/Makefile
  • testsuites/sptests/sp07/init.c

    ra48b7c44 rd5154d0f  
    211211  assert_extension_counts( &Task_restarted[ 0 ], 0x0 );
    212212
    213  /*
    214   * We know this is deprecated and don't want a warning on every BSP built.
    215   */
    216   #pragma GCC diagnostic push
    217   #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 pop
    230 
    231213  status = rtems_task_delete( RTEMS_SELF );
    232214  directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
  • testsuites/sptests/sp07/sp07.scn

    ra48b7c44 rd5154d0f  
    1111rtems_extension_ident - bad name -- RTEMS_INVALID_ADDRESS
    1212rtems_extension_create - harmless -- OK
    13 INIT - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8 to TA1's priority: 04
    14 INIT - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8 to TA2's priority: 04
    1513<pause>
    1614TA1 - rtems_task_set_priority - get initial priority of self: 04
    17 TA1 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 04
    18 TA1 - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8: 03
    1915TA1 - rtems_task_set_priority - set TA2's priority: 03
    20 TA2 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 03
    21 TA2 - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8: 02
    2216TA2 - rtems_task_set_priority - set TA1's priority: 02
    23 TA1 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 02
    24 TA1 - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8: 01
    2517TA1 - rtems_task_set_priority - set TA2's priority: 01
    26 TA2 - rtems_task_get_note - get RTEMS_NOTEPAD_8 - current priority: 01
    2718TA2 - rtems_task_suspend - suspend TA1
    2819TA2 - rtems_task_set_priority - set priority of TA1 ( blocked )
  • testsuites/sptests/sp07/system.h

    ra48b7c44 rd5154d0f  
    6565#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    6666
    67 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
    68 
    6967#define CONFIGURE_MAXIMUM_USER_EXTENSIONS     2
    7068#define CONFIGURE_TICKS_PER_TIMESLICE       100
  • testsuites/sptests/sp07/task1.c

    ra48b7c44 rd5154d0f  
    4545
    4646  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_priority
    53     );
    54 
    5547    if ( --the_priority == 0 ) {
    5648      puts( "TA1 - rtems_task_suspend - suspend TA2" );
     
    7062
    7163    printf(
    72       "TA1 - rtems_task_set_note - set TA2's RTEMS_NOTEPAD_8: "
    73           "%02" PRIdrtems_task_priority "\n",
    74       the_priority
    75     );
    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(
    8064      "TA1 - rtems_task_set_priority - set TA2's priority: "
    8165          "%02" PRIdrtems_task_priority "\n",
  • testsuites/sptests/sp07/task2.c

    ra48b7c44 rd5154d0f  
    2828
    2929  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_priority
    37     );
    38 
    3930    if ( --the_priority == 0 ) {
    4031      puts( "TA2 - rtems_task_suspend - suspend TA1" );
     
    6051
    6152      printf(
    62         "TA2 - rtems_task_set_note - set TA1's RTEMS_NOTEPAD_8: "
    63             "%02" PRIdrtems_task_priority "\n",
    64         the_priority
    65       );
    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(
    7053        "TA2 - rtems_task_set_priority - set TA1's priority: "
    7154            "%02" PRIdrtems_task_priority "\n",
  • testsuites/sptests/sptask_err04/sptask_err04.scn

    ra48b7c44 rd5154d0f  
    22TA1 - rtems_task_is_suspended - RTEMS_INVALID_ID
    33TA1 - rtems_task_delete - RTEMS_INVALID_ID
    4 TA1 - rtems_task_get_note - RTEMS_INVALID_ADDRESS
    5 TA1 - rtems_task_get_note - RTEMS_INVALID_NUMBER
    6 TA1 - rtems_task_get_note - RTEMS_INVALID_ID
    7 TA1 - rtems_task_get_note - RTEMS_INVALID_ID
    84TA1 - rtems_task_ident - RTEMS_INVALID_ADDRESS
    95TA1 - rtems_task_ident - global RTEMS_INVALID_NAME
     
    1612TA1 - rtems_task_set_priority - RTEMS_INVALID_PRIORITY
    1713TA1 - rtems_task_set_priority - RTEMS_INVALID_ID
    18 TA1 - rtems_task_set_note - RTEMS_INVALID_NUMBER
    19 TA1 - rtems_task_set_note - RTEMS_INVALID_ID
    2014TA1 - rtems_task_start - RTEMS_INVALID_ID
    2115TA1 - rtems_task_start - RTEMS_INCORRECT_STATE
  • testsuites/sptests/sptask_err04/system.h

    ra48b7c44 rd5154d0f  
    3030#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3131
    32 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
    33 
    3432#define CONFIGURE_MAXIMUM_TASKS 2
    3533
  • testsuites/sptests/sptask_err04/task1.c

    ra48b7c44 rd5154d0f  
    2828)
    2929{
    30   uint32_t            notepad_value;
    3130  rtems_id            self_id;
    3231  rtems_task_priority previous_priority;
     
    5150  puts( "TA1 - rtems_task_delete - RTEMS_INVALID_ID" );
    5251
    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" );
    5484
    5585  /*
    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.
    5787   */
    58   #pragma GCC diagnostic push
    59   #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    6088
    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" );
    69104
    70     /* note too high */
    71     status = rtems_task_get_note( RTEMS_SELF, 100, &notepad_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" );
    78112
    79     /* bad Id */
    80     status = rtems_task_get_note( 100, RTEMS_NOTEPAD_LAST, &notepad_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" );
    87120
    88     /* unused Id so invalid now */
    89     status = rtems_task_get_note(
    90       Task_id[ 0 ],
    91       RTEMS_NOTEPAD_LAST,
    92       &notepad_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" );
    100128
    101     status = rtems_task_get_note(
    102       _RTEMS_tasks_Information.Objects.minimum_id + (3L<<OBJECTS_API_START_BIT),
    103       RTEMS_NOTEPAD_LAST,
    104       &notepad_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" );
    111137
    112     status = rtems_task_get_note(
    113       rtems_build_id( OBJECTS_CLASSIC_API, 2, 1, 1 ),
    114       RTEMS_NOTEPAD_LAST,
    115       &notepad_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" );
    122146
    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" );
    250155
    251156  status = rtems_task_start( 100, Task_1, 0 );
  • testsuites/tmtests/tm08/system.h

    ra48b7c44 rd5154d0f  
    2828#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
    2929
    30 #define CONFIGURE_ENABLE_CLASSIC_API_NOTEPADS
    31 
    3230#define CONFIGURE_MAXIMUM_TASKS              3
    3331#define CONFIGURE_TICKS_PER_TIMESLICE        0
  • testsuites/tmtests/tm08/task1.c

    ra48b7c44 rd5154d0f  
    8282  rtems_task_priority old_priority;
    8383  rtems_time_of_day   time;
    84   uint32_t      old_note;
    8584  uint32_t      old_mode;
    8685
     
    187186    (void)  rtems_task_mode( RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
    188187
    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 push
    195   #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_NOTE
    208     );
    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_NOTE
    221     );
    222 
    223   #pragma GCC diagnostic pop
    224 
    225   /** END OF NOTEPAD TESTS **/
    226 
    227188  build_time( &time, 1, 1, 1988, 0, 0, 0, 0 );
    228189
  • testsuites/tmtests/tmoverhd/dumrtems.h

    ra48b7c44 rd5154d0f  
    6060#undef rtems_task_create
    6161#undef rtems_task_delete
    62 #undef rtems_task_get_note
    6362#undef rtems_task_ident
    6463#undef rtems_task_mode
    6564#undef rtems_task_restart
    6665#undef rtems_task_resume
    67 #undef rtems_task_set_note
    6866#undef rtems_task_set_priority
    6967#undef rtems_task_start
     
    185183#define     rtems_task_delete( tid ) \
    186184           Empty_directive()
    187 #define     rtems_task_get_note( tid, notepad, note ) \
    188            Empty_directive()
    189185#define     rtems_task_ident( name, node, tid ) \
    190186           Empty_directive()
     
    194190           Empty_directive()
    195191#define     rtems_task_resume( tid ) \
    196            Empty_directive()
    197 #define     rtems_task_set_note( tid, notepad, note ) \
    198192           Empty_directive()
    199193#define     rtems_task_set_priority( tid, priority, ppriority ) \
  • testsuites/tmtests/tmoverhd/testtask.c

    ra48b7c44 rd5154d0f  
    6969  rtems_mode                 mask RTEMS_GCC_NOWARN_UNUSED;
    7070  rtems_mode                 out_mode RTEMS_GCC_NOWARN_UNUSED;
    71   uint32_t                   note RTEMS_GCC_NOWARN_UNUSED;
    7271  rtems_time_of_day          time RTEMS_GCC_NOWARN_UNUSED;
    7372  rtems_interval             timeout RTEMS_GCC_NOWARN_UNUSED;
     
    8786  in_mode     = RTEMS_NO_PREEMPT;
    8887  mask        = RTEMS_PREEMPT_MASK;
    89   note        = 8;
    9088  timeout     = 100;
    9189  signals     = RTEMS_SIGNAL_1 | RTEMS_SIGNAL_3;
     
    252250      );
    253251
    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          0
    267       );
    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          0
    282       );
    283 
    284252/* rtems_task_wake_when */
    285253
  • testsuites/tmtests/tmtests_plan.csv

    ra48b7c44 rd5154d0f  
    33"rtems_barrier_ident: only case",tm30,NA,Yes
    44,,,
    5 "rtems_clock_get_tod: only case",tm08,NA,Yes
    6 "rtems_clock_set: only case",tm08,NA,Yes
    75"rtems_clock_tick: only case",tm25,NA,Yes
    86,,,
     
    125123"rtems_task_delete: ready task",tm06,NA,Yes
    126124"rtems_task_delete: suspended task",tm04,NA,Yes
    127 "rtems_task_get_note: only case",tm08,NA,Yes
    128125"rtems_task_ident: only case",tm21,NA,Yes
    129 "rtems_task_mode: no reschedule",tm08,NA,Yes
    130 "rtems_task_mode: obtain current mode",tm08,NA,Yes
    131 "rtems_task_mode: reschedule returns to caller",tm08,NA,Yes
    132 "rtems_task_mode: reschedule",tm08,NA,Yes
    133126"rtems_task_restart: blocked task preempts caller",tm04,NA,Yes
    134127"rtems_task_restart: blocked task",tm04,NA,Yes
     
    140133"rtems_task_resume: task readied preempts caller",tm05,NA,Yes
    141134"rtems_task_resume: task readied returns to caller",tm06,NA,Yes
    142 "rtems_task_set_note: only case",tm08,NA,Yes
    143 "rtems_task_set_priority: obtain current priority",tm08,NA,Yes
    144135"rtems_task_set_priority: preempts caller",tm17,NA,Yes
    145 "rtems_task_set_priority: returns to caller",tm08,NA,Yes
    146136"rtems_task_start: only case",tm04,NA,Yes
    147137"rtems_task_suspend: calling task",tm05,NA,Yes
  • testsuites/tools/generic/sorttimes.in

    ra48b7c44 rd5154d0f  
    6767lookup rtems_task_mode: reschedule -- returns to caller
    6868lookup rtems_task_mode: reschedule -- preempts caller
    69 lookup rtems_task_get_note
    70 lookup rtems_task_set_note
    7169lookup rtems_task_wake_after: yield -- returns to caller
    7270lookup rtems_task_wake_after: yields -- preempts caller
Note: See TracChangeset for help on using the changeset viewer.