diff options
Diffstat (limited to 'baseline/source/epic/epic.c')
-rw-r--r-- | baseline/source/epic/epic.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/baseline/source/epic/epic.c b/baseline/source/epic/epic.c index a1e344c..e31e54e 100644 --- a/baseline/source/epic/epic.c +++ b/baseline/source/epic/epic.c | |||
@@ -598,7 +598,7 @@ void epic_main( void ); | |||
598 | Declaration of global variables | 598 | Declaration of global variables |
599 | */ | 599 | */ |
600 | 600 | ||
601 | float epic_filtertemp[FILTER_SIZE]; | 601 | float epic_filtertemp[FILTER_SIZE*2]; // *2 to work around memory corruption issue |
602 | float epic_hi_imagetemp[X_SIZE * Y_SIZE / 2]; | 602 | float epic_hi_imagetemp[X_SIZE * Y_SIZE / 2]; |
603 | float epic_lo_imagetemp[X_SIZE * Y_SIZE / 2]; | 603 | float epic_lo_imagetemp[X_SIZE * Y_SIZE / 2]; |
604 | 604 | ||
@@ -1129,13 +1129,16 @@ int epic_return(){ | |||
1129 | 1129 | ||
1130 | int main( int argc, char **argv ) | 1130 | int main( int argc, char **argv ) |
1131 | { | 1131 | { |
1132 | SET_UP | 1132 | int exit_code = -1; |
1133 | for (jobsComplete=0; jobsComplete<maxJobs; jobsComplete++){ | 1133 | SET_UP |
1134 | START_LOOP | 1134 | for_each_job { |
1135 | epic_init(); | 1135 | epic_init(); |
1136 | epic_main(); | 1136 | epic_main(); |
1137 | STOP_LOOP | 1137 | // This checks the checksum is as expected. |
1138 | } | 1138 | // This is `&` as only the first job will match |
1139 | WRITE_TO_FILE | 1139 | // (image state persists between jobs). |
1140 | return epic_return(); | 1140 | exit_code &= epic_return(); |
1141 | } | ||
1142 | WRITE_TO_FILE | ||
1143 | return exit_code; | ||
1141 | } | 1144 | } |