From 6c2b8a4b35536a5f99ba1ef91139485b011dafc1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 29 Nov 2017 06:23:27 +0100 Subject: score: Use self-contained API mutex Use a self-contained recursive mutex for API_Mutex_Control. The API mutexes are protected against asynchronous thread cancellation. Add dedicated mutexes for libatomic and TOD. Close #2629. Close #2630. --- cpukit/sapi/include/confdefs.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cpukit/sapi/include/confdefs.h') diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index ca4ee47b2b..8066d9a426 100755 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -2793,13 +2793,6 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #define CONFIGURE_MEMORY_OVERHEAD 0 #endif -/** - * RTEMS uses two instance of an internal mutex class. This accounts - * for these mutexes. - */ -#define _CONFIGURE_API_MUTEX_MEMORY \ - _Configure_Object_RAM(2, sizeof(API_Mutex_Control)) - /** * This calculates the amount of memory reserved for the IDLE tasks. * In an SMP system, each CPU core has its own idle task. @@ -2829,8 +2822,7 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; */ #define _CONFIGURE_MEMORY_FOR_SYSTEM_OVERHEAD \ ( _CONFIGURE_MEMORY_FOR_INTERNAL_TASKS + \ - _CONFIGURE_INTERRUPT_STACK_MEMORY + \ - _CONFIGURE_API_MUTEX_MEMORY \ + _CONFIGURE_INTERRUPT_STACK_MEMORY \ ) /** -- cgit v1.2.3