diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-07 13:41:37 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-07 13:42:21 +0100 |
commit | 36338fb312afa718d088feeb29d8d39e8a1f0cf1 (patch) | |
tree | cd692afe7698de26df716dc72c9cdfd3e8a19676 /cpukit/libmisc/monitor | |
parent | score: Fix scheduler yield in SMP configurations (diff) | |
download | rtems-36338fb312afa718d088feeb29d8d39e8a1f0cf1.tar.bz2 |
monitor: Do not zero sema id and name
Diffstat (limited to 'cpukit/libmisc/monitor')
-rw-r--r-- | cpukit/libmisc/monitor/mon-sema.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libmisc/monitor/mon-sema.c b/cpukit/libmisc/monitor/mon-sema.c index 3dc7172501..1a87d727eb 100644 --- a/cpukit/libmisc/monitor/mon-sema.c +++ b/cpukit/libmisc/monitor/mon-sema.c @@ -21,7 +21,11 @@ rtems_monitor_sema_canonical( const Semaphore_Control *rtems_sema = (const Semaphore_Control *) sema_void; Thread_Control *owner; - memset(canonical_sema, 0, sizeof(*canonical_sema)); + canonical_sema->attribute = 0; + canonical_sema->priority_ceiling = 0; + canonical_sema->max_count = 0; + canonical_sema->cur_count = 0; + canonical_sema->holder_id = 0; #if defined(RTEMS_MULTIPROCESSING) if (rtems_sema->is_global) { |