Changeset b88d346f in rtems


Ignore:
Timestamp:
Jun 9, 2015, 7:28:36 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
30f8412
Parents:
a51b352
Message:

sptests/spcontext01: Add second volatile clobber

Do a volatile clobber in the context switch extension to cover the path
through _Thread_Do_dispatch() invoked after interrupt processing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spcontext01/init.c

    ra51b352 rb88d346f  
    275275}
    276276
     277static void switch_extension(Thread_Control *executing, Thread_Control *heir)
     278{
     279  uintptr_t pattern = (uintptr_t) 0xffffffffffffffffU;
     280
     281  _CPU_Context_volatile_clobber(pattern);
     282}
     283
    277284#define CONFIGURE_MICROSECONDS_PER_TICK 1000
    278285
     
    283290#define CONFIGURE_MAXIMUM_TIMERS 1
    284291
    285 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     292#define CONFIGURE_INITIAL_EXTENSIONS \
     293  { .thread_switch = switch_extension }, \
     294  RTEMS_TEST_INITIAL_EXTENSION
    286295
    287296#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
Note: See TracChangeset for help on using the changeset viewer.