[rtems commit] leon,grascs: fix semaphore policies
Daniel Hellstrom
danielh at rtems.org
Tue Aug 29 07:09:28 UTC 2017
Module: rtems
Branch: master
Commit: efcac228f4888c2cccfea0caf584705f0fddfc14
Changeset: http://git.rtems.org/rtems/commit/?id=efcac228f4888c2cccfea0caf584705f0fddfc14
Author: Daniel Hellstrom <daniel at gaisler.com>
Date: Thu Aug 24 15:41:38 2017 +0200
leon,grascs: fix semaphore policies
Closes #2726
---
c/src/lib/libbsp/sparc/shared/ascs/grascs.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/ascs/grascs.c b/c/src/lib/libbsp/sparc/shared/ascs/grascs.c
index bc09159..11663b2 100644
--- a/c/src/lib/libbsp/sparc/shared/ascs/grascs.c
+++ b/c/src/lib/libbsp/sparc/shared/ascs/grascs.c
@@ -208,7 +208,7 @@ int ASCS_init(void) {
/* Create semaphores for blocking ASCS_TC/TM functions */
if(rtems_semaphore_create(rtems_build_name('A','S','C','0'),1,
- (RTEMS_FIFO|RTEMS_BINARY_SEMAPHORE|
+ (RTEMS_FIFO|RTEMS_SIMPLE_BINARY_SEMAPHORE|
RTEMS_NO_INHERIT_PRIORITY|RTEMS_LOCAL|
RTEMS_NO_PRIORITY_CEILING), 0,
&cfg->tcsem1) != RTEMS_SUCCESSFUL) {
@@ -223,8 +223,9 @@ int ASCS_init(void) {
DBG("ASCS_init: Failed to create semaphore ASC1\n");
goto init_error2;
}
+ /* Create semaphores for waiting on ASCS_TC/TM interrupt */
if(rtems_semaphore_create(rtems_build_name('A','S','C','2'),0,
- (RTEMS_FIFO|RTEMS_BINARY_SEMAPHORE|
+ (RTEMS_FIFO|RTEMS_SIMPLE_BINARY_SEMAPHORE|
RTEMS_NO_INHERIT_PRIORITY|RTEMS_LOCAL|
RTEMS_NO_PRIORITY_CEILING), 0,
&cfg->tcsem2) != RTEMS_SUCCESSFUL) {
More information about the vc
mailing list