Changeset 537f00eb in rtems for testsuites/smptests


Ignore:
Timestamp:
Nov 10, 2016, 3:25:41 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
408609f6
Parents:
7ce60b3
git-author:
Sebastian Huber <sebastian.huber@…> (11/10/16 15:25:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/18/16 06:30:35)
Message:

score: Restrict task interrupt level to 0 on SMP

Update #2811.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpunsupported01/init.c

    r7ce60b3 r537f00eb  
    11/*
    22 * Copyright (c) 2014 On-Line Applications Research Corporation (OAR).
    3  * Copyright (c) 2013-2014 embedded brains GmbH.  All rights reserved.
     3 * Copyright (c) 2013, 2016 embedded brains GmbH.  All rights reserved.
    44 *
    55 *  embedded brains GmbH
     
    4242  );
    4343  rtems_test_assert(sc == RTEMS_UNSATISFIED);
     44
     45  mode = RTEMS_INTERRUPT_LEVEL(1);
     46
     47  if (mode != 0) {
     48    sc = rtems_task_create(
     49      rtems_build_name('T', 'A', 'S', 'K'),
     50      RTEMS_MINIMUM_PRIORITY,
     51      RTEMS_MINIMUM_STACK_SIZE,
     52      mode,
     53      RTEMS_DEFAULT_ATTRIBUTES,
     54      &id
     55    );
     56    rtems_test_assert(sc == RTEMS_UNSATISFIED);
     57  } else {
     58    puts("RTEMS_INTERRUPT_LEVEL(1) not supported on this platform");
     59  }
    4460}
    4561
Note: See TracChangeset for help on using the changeset viewer.