post.c (8ade95063815d8ffca7cededa6c40cddec857d38) post.c (770605e4f9874230728f5a592820c619b1565ebc)
1/*
2 * (C) Copyright 2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or

--- 144 unchanged lines hidden (view full) ---

153
154 for (j = 0; j < post_list_size; j++) {
155 if (gd->post_log_word & (post_list[j].testid)) {
156 post_log("POST %s ", post_list[j].cmd);
157 if (gd->post_log_res & post_list[j].testid)
158 post_log("PASSED\n");
159 else {
160 post_log("FAILED\n");
1/*
2 * (C) Copyright 2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or

--- 144 unchanged lines hidden (view full) ---

153
154 for (j = 0; j < post_list_size; j++) {
155 if (gd->post_log_word & (post_list[j].testid)) {
156 post_log("POST %s ", post_list[j].cmd);
157 if (gd->post_log_res & post_list[j].testid)
158 post_log("PASSED\n");
159 else {
160 post_log("FAILED\n");
161 show_boot_error(BOOTSTAGE_ID_POST_FAIL_R);
161 bootstage_error(BOOTSTAGE_ID_POST_FAIL_R);
162 }
163 }
164 }
165}
166
167static void post_bootmode_test_on(unsigned int last_test)
168{
169 unsigned long word = post_word_load();

--- 120 unchanged lines hidden (view full) ---

290 if (test_flags & POST_CRITICAL)
291 gd->flags |= GD_FLG_POSTFAIL;
292 if (test_flags & POST_STOP)
293 gd->flags |= GD_FLG_POSTSTOP;
294 }
295 } else {
296 if ((*test->test)(flags) != 0) {
297 post_log("FAILED\n");
162 }
163 }
164 }
165}
166
167static void post_bootmode_test_on(unsigned int last_test)
168{
169 unsigned long word = post_word_load();

--- 120 unchanged lines hidden (view full) ---

290 if (test_flags & POST_CRITICAL)
291 gd->flags |= GD_FLG_POSTFAIL;
292 if (test_flags & POST_STOP)
293 gd->flags |= GD_FLG_POSTSTOP;
294 }
295 } else {
296 if ((*test->test)(flags) != 0) {
297 post_log("FAILED\n");
298 show_boot_error(BOOTSTAGE_ID_POST_FAIL_R);
298 bootstage_error(BOOTSTAGE_ID_POST_FAIL_R);
299 show_post_progress(i, POST_AFTER, POST_FAILED);
300 if (test_flags & POST_CRITICAL)
301 gd->flags |= GD_FLG_POSTFAIL;
302 if (test_flags & POST_STOP)
303 gd->flags |= GD_FLG_POSTSTOP;
304 } else {
305 post_log("PASSED\n");
306 show_post_progress(i, POST_AFTER, POST_PASSED);

--- 200 unchanged lines hidden ---
299 show_post_progress(i, POST_AFTER, POST_FAILED);
300 if (test_flags & POST_CRITICAL)
301 gd->flags |= GD_FLG_POSTFAIL;
302 if (test_flags & POST_STOP)
303 gd->flags |= GD_FLG_POSTSTOP;
304 } else {
305 post_log("PASSED\n");
306 show_post_progress(i, POST_AFTER, POST_PASSED);

--- 200 unchanged lines hidden ---