[PATCH 2/2] cpukit/taskmp.c: Remove obsolete Notepad

Aun-Ali Zaidi admin at kodeit.net
Mon Dec 21 01:13:20 UTC 2015


updates #2493.
---
 cpukit/rtems/include/rtems/rtems/taskmp.h |  2 --
 cpukit/rtems/src/taskmp.c                 | 12 +++++-------
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/cpukit/rtems/include/rtems/rtems/taskmp.h b/cpukit/rtems/include/rtems/rtems/taskmp.h
index 30a9a6a..1e2a099 100644
--- a/cpukit/rtems/include/rtems/rtems/taskmp.h
+++ b/cpukit/rtems/include/rtems/rtems/taskmp.h
@@ -69,8 +69,6 @@ typedef struct {
   RTEMS_tasks_MP_Remote_operations  operation;
   rtems_name                        name;
   rtems_task_priority               the_priority;
-  uint32_t                          notepad;
-  uint32_t                          note;
 }   RTEMS_tasks_MP_Packet;
 
 /**
diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c
index a1386d9..bc638b2 100644
--- a/cpukit/rtems/src/taskmp.c
+++ b/cpukit/rtems/src/taskmp.c
@@ -102,8 +102,6 @@ rtems_status_code _RTEMS_tasks_MP_Send_request_packet (
       the_packet->operation         = operation;
       the_packet->Prefix.id         = task_id;
       the_packet->the_priority      = new_priority;
-      the_packet->notepad           = notepad;
-      the_packet->note              = note;
 
       return _MPCI_Send_request_packet(
         _Objects_Get_node( task_id ),
@@ -278,8 +276,8 @@ void _RTEMS_tasks_MP_Process_packet (
 
       the_packet->Prefix.return_code = rtems_task_get_note(
         the_packet->Prefix.id,
-        the_packet->notepad,
-        &the_packet->note
+        0,
+        0
       );
 
       _RTEMS_tasks_MP_Send_response_packet(
@@ -292,7 +290,7 @@ void _RTEMS_tasks_MP_Process_packet (
 
       the_thread = _MPCI_Process_response( the_packet_prefix );
 
-      *(uint32_t   *)the_thread->Wait.return_argument = the_packet->note;
+      *(uint32_t   *)the_thread->Wait.return_argument = 0;
 
       _MPCI_Return_packet( the_packet_prefix );
       break;
@@ -301,8 +299,8 @@ void _RTEMS_tasks_MP_Process_packet (
 
       the_packet->Prefix.return_code = rtems_task_set_note(
         the_packet->Prefix.id,
-        the_packet->notepad,
-        the_packet->note
+        0,
+        0
       );
 
       _RTEMS_tasks_MP_Send_response_packet(
-- 
2.1.4




More information about the devel mailing list