From 4b556660f1d4ef76a937a5f2a4a0dc4edb973013 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 25 Aug 2010 20:01:47 +0000 Subject: 2010-08-25 Joel Sherrill Coverity Id 164/UNINIT Coverity Id 165/UNINIT * posix/src/prwlockinit.c, posix/src/pspininit.c, score/include/rtems/score/corespinlock.h, score/inline/rtems/score/corerwlock.inl, score/inline/rtems/score/corespinlock.inl: Add initialization helpers for score rwlock and spinlock. Use them from POSIX. --- cpukit/score/inline/rtems/score/corespinlock.inl | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cpukit/score/inline/rtems/score/corespinlock.inl') diff --git a/cpukit/score/inline/rtems/score/corespinlock.inl b/cpukit/score/inline/rtems/score/corespinlock.inl index 2cb17165d8..05e3408742 100644 --- a/cpukit/score/inline/rtems/score/corespinlock.inl +++ b/cpukit/score/inline/rtems/score/corespinlock.inl @@ -28,6 +28,19 @@ * @{ */ +/** + * + * This method is used to initialize core spinlock attributes. + * + * @param[in] the_attributes pointer to the attributes to initialize. + */ +RTEMS_INLINE_ROUTINE void _CORE_spinlock_Initialize_attributes( + CORE_spinlock_Attributes *the_attributes +) +{ + the_attributes->XXX = 0; +} + /** * * This method is used to determine if the spinlock is available or not. -- cgit v1.2.3