rtems: Allow to set ISR level 0 in SMP config

Update #3000.
This commit is contained in:
Sebastian Huber
2019-01-09 10:35:31 +01:00
parent 38cb59ee0b
commit 1f28518675
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -56,6 +56,7 @@ rtems_status_code rtems_task_mode(
#if defined(RTEMS_SMP)
if (
( mask & RTEMS_INTERRUPT_MASK ) != 0
&& _Modes_Get_interrupt_level( mode_set ) != 0
&& rtems_configuration_is_smp_enabled()
) {
return RTEMS_NOT_IMPLEMENTED;
+1 -1
View File
@@ -45,7 +45,7 @@ static void test(void)
mode = RTEMS_INTERRUPT_LEVEL(0);
if (mode == 0) {
sc = rtems_task_mode(mode, RTEMS_INTERRUPT_MASK, &mode);
rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);
}
mode = RTEMS_INTERRUPT_LEVEL(1);