mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 04:35:38 +08:00
ada/sp04: Fix test failure due to compiler opti
The SPTEST.RUN_COUNT must be volatile since it is changed outside of the procedure scope by the thread switch extension.
This commit is contained in:
@@ -45,6 +45,7 @@ package SPTEST is
|
||||
--
|
||||
|
||||
RUN_COUNT : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.UNSIGNED32;
|
||||
pragma Volatile (RUN_COUNT);
|
||||
|
||||
--
|
||||
-- INIT
|
||||
|
||||
Reference in New Issue
Block a user