From ac2bb464a5948ff0b3ae4bb5bd4434735e6c0e04 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 31 May 2013 13:56:56 +0200 Subject: smptests: Use priority ceiling for locked print In case the printf() blocks on a semaphore it was possible to end up in a livelock. --- testsuites/support/src/locked_print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testsuites/support') 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 -- cgit v1.2.3