From 43e1573c1f02194a4fa754dfbff51862130742a5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 28 Feb 2015 18:06:37 +0100 Subject: score: Add ISR lock to Objects_Control This enables per-object SMP locks on SMP configurations and is the first step to support fine-grained locking. On uni-processor configuration there will be no overhead. The _Objects_Acquire() is intended to replace _Objects_Get_isr_disable(). Update #2273. --- cpukit/score/include/rtems/score/object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cpukit/score/include/rtems/score/object.h') diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h index 70e5fe630c..36449431d4 100644 --- a/cpukit/score/include/rtems/score/object.h +++ b/cpukit/score/include/rtems/score/object.h @@ -23,6 +23,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { @@ -236,6 +237,8 @@ typedef struct { Objects_Id id; /** This is the object's name. */ Objects_Name name; + /** This is the object's ISR lock. */ + ISR_LOCK_MEMBER( Lock ) } Objects_Control; #if defined( RTEMS_MULTIPROCESSING ) -- cgit v1.2.3