diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-31 13:56:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-31 15:20:30 +0200 |
commit | ac2bb464a5948ff0b3ae4bb5bd4434735e6c0e04 (patch) | |
tree | d06af96753409c3ec551b7ea0b73ee7f4031dcd4 /testsuites/support | |
parent | e071c18322b9e01f95fced40fe0242542e1b13e1 (diff) |
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.c | 3 |
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 |