From 3a0827287dc2c2328e953fead2b883501053c444 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 10 Jul 2009 20:32:48 +0000 Subject: 2009-07-10 Joel Sherrill * configure.ac, score/src/threadqenqueuepriority.c: Add RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY to give user ability to disable the loop in _Thread_queue_Enqueue_priority from being unrolled. This reduces code size and makes coverage analysis easier. --- cpukit/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpukit/configure.ac') diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 6d377d26fd..32c4fcb8b2 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -232,6 +232,12 @@ RTEMS_CPUOPT([__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__], [1], [disable inlining _Thread_Enable_dispatch]) +## This improves both the size and coverage analysis. +RTEMS_CPUOPT([__RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY__], + [test x"${RTEMS_DO_NOT_UNROLL_THREADQ_ENQUEUE_PRIORITY}" = x"1"], + [1], + [disable inlining _Thread_queue_Enqueue_priority]) + ## This gives the same behavior as 4.8 and older RTEMS_CPUOPT([__RTEMS_STRICT_ORDER_MUTEX__], [test x"${ENABLE_STRICT_ORDER_MUTEX}" = x"1"], -- cgit v1.2.3