From 537f00ebe83370b8336361b8ae34d4a71e7023bb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 10 Nov 2016 16:25:41 +0100 Subject: score: Restrict task interrupt level to 0 on SMP Update #2811. --- testsuites/smptests/smpunsupported01/init.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'testsuites') diff --git a/testsuites/smptests/smpunsupported01/init.c b/testsuites/smptests/smpunsupported01/init.c index 9d69b6bdc6..52c3181f70 100644 --- a/testsuites/smptests/smpunsupported01/init.c +++ b/testsuites/smptests/smpunsupported01/init.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2014 On-Line Applications Research Corporation (OAR). - * Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved. + * Copyright (c) 2013, 2016 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -41,6 +41,22 @@ static void test(void) &id ); rtems_test_assert(sc == RTEMS_UNSATISFIED); + + mode = RTEMS_INTERRUPT_LEVEL(1); + + if (mode != 0) { + sc = rtems_task_create( + rtems_build_name('T', 'A', 'S', 'K'), + RTEMS_MINIMUM_PRIORITY, + RTEMS_MINIMUM_STACK_SIZE, + mode, + RTEMS_DEFAULT_ATTRIBUTES, + &id + ); + rtems_test_assert(sc == RTEMS_UNSATISFIED); + } else { + puts("RTEMS_INTERRUPT_LEVEL(1) not supported on this platform"); + } } static void Init(rtems_task_argument arg) -- cgit v1.2.3