From 24ea1cebeb5e64ba2371c8e740ebe3c81d565ca2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 24 Sep 2020 09:05:36 +0200 Subject: rtems: Remove Message_queue_Control::attribute_set Add Message_queue_Control::is_global if RTEMS_MULTIPROCESSING is defined. This reduces the Message_queue_Control size in standard RTEMS configurations. Update #4007. --- cpukit/libmisc/monitor/mon-queue.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'cpukit/libmisc') diff --git a/cpukit/libmisc/monitor/mon-queue.c b/cpukit/libmisc/monitor/mon-queue.c index 9430797c6c..aadfcd3989 100644 --- a/cpukit/libmisc/monitor/mon-queue.c +++ b/cpukit/libmisc/monitor/mon-queue.c @@ -16,7 +16,21 @@ rtems_monitor_queue_canonical( { const Message_queue_Control *rtems_queue = (const Message_queue_Control *) queue_void; - canonical_queue->attributes = rtems_queue->attribute_set; + canonical_queue->attributes = 0; + + if ( + rtems_queue->message_queue.operations + == &_Thread_queue_Operations_priority + ) { + canonical_queue->attributes |= RTEMS_PRIORITY; + } + +#if defined(RTEMS_MULTIPROCESSING) + if ( rtems_queue->is_global ) { + canonical_queue->attributes |= RTEMS_GLOBAL; + } +#endif + canonical_queue->maximum_message_size = rtems_queue->message_queue.maximum_message_size; canonical_queue->maximum_pending_messages = rtems_queue->message_queue.maximum_pending_messages; canonical_queue->number_of_pending_messages = rtems_queue->message_queue.number_of_pending_messages; -- cgit v1.2.3