summaryrefslogtreecommitdiffstats
path: root/testsuites/support
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-31 13:56:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-31 15:20:30 +0200
commitac2bb464a5948ff0b3ae4bb5bd4434735e6c0e04 (patch)
treed06af96753409c3ec551b7ea0b73ee7f4031dcd4 /testsuites/support
parentsmp: Move secondary CPU initialization request (diff)
downloadrtems-ac2bb464a5948ff0b3ae4bb5bd4434735e6c0e04.tar.bz2
smptests: Use priority ceiling for locked print
In case the printf() blocks on a semaphore it was possible to end up in a livelock.
Diffstat (limited to 'testsuites/support')
-rw-r--r--testsuites/support/src/locked_print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/support/src/locked_print.c b/testsuites/support/src/locked_print.c
index 62e72bf47c..8a901c9219 100644
--- a/testsuites/support/src/locked_print.c
+++ b/testsuites/support/src/locked_print.c
@@ -36,7 +36,8 @@ void locked_print_initialize(void)
rtems_build_name ('S', 'E', 'M', '1'),
1,
RTEMS_LOCAL |
- RTEMS_SIMPLE_BINARY_SEMAPHORE |
+ RTEMS_BINARY_SEMAPHORE |
+ RTEMS_PRIORITY_CEILING |
RTEMS_PRIORITY,
1,
&locked_print_semaphore