Changeset 8d30713d in rtems
- Timestamp:
- Sep 5, 2014, 11:33:57 AM (6 years ago)
- Branches:
- 4.11, 5, master
- Children:
- d11e6efe
- Parents:
- 33676c8c
- git-author:
- Sebastian Huber <sebastian.huber@…> (09/05/14 11:33:57)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (09/08/14 05:53:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/tmtests/tmcontext01/init.c
r33676c8c r8d30713d 45 45 static Context_Control ctx; 46 46 47 static void dirty_data_cache(volatile int *d)47 static int dirty_data_cache(volatile int *d, int j) 48 48 { 49 49 size_t n = data_size / sizeof(*d); … … 51 51 52 52 for (i = 0; i < n; ++i) { 53 d[i] = i; 54 } 53 d[i] = i + j; 54 } 55 56 return i + j; 55 57 } 56 58 … … 89 91 90 92 if (dirty) { 91 dirty_data_cache(main_data );93 dirty_data_cache(main_data, fl); 92 94 rtems_cache_invalidate_entire_instruction(); 93 95 } … … 111 113 { 112 114 volatile int *load_data = (volatile int *) arg; 115 int j = (int) rtems_get_current_processor(); 113 116 114 117 while (true) { 115 dirty_data_cache(load_data);118 j = dirty_data_cache(load_data, j); 116 119 } 117 120 }
Note: See TracChangeset
for help on using the changeset viewer.