]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/post.c
ppc4xx: Change 4xx POST ethernet test to handle cached memory too
[karo-tx-uboot.git] / post / post.c
index ac419908605578ce66322fe5ea26ba08303a9073..4ff75ee4b12abe44157e4d807516e63c12d2b5c9 100644 (file)
@@ -129,9 +129,7 @@ void post_output_backlog ( void )
                                post_log ("PASSED\n");
                        else {
                                post_log ("FAILED\n");
-#ifdef CONFIG_SHOW_BOOT_PROGRESS
-                               show_boot_progress(-31);
-#endif
+                               show_boot_progress (-31);
                        }
                }
        }
@@ -241,9 +239,7 @@ static int post_run_single (struct post_test *test,
                } else {
                if ((*test->test) (flags) != 0) {
                        post_log ("FAILED\n");
-#ifdef CONFIG_SHOW_BOOT_PROGRESS
-                       show_boot_progress(-32);
-#endif
+                       show_boot_progress (-32);
                }
                else
                        post_log ("PASSED\n");
@@ -428,7 +424,7 @@ void post_reloc (void)
 unsigned long post_time_ms (unsigned long base)
 {
 #ifdef CONFIG_PPC
-       return (unsigned long)get_ticks () / (get_tbclk () / CFG_HZ) - base;
+       return (unsigned long)(get_ticks () / (get_tbclk () / CFG_HZ)) - base;
 #else
 #warning "Not implemented yet"
        return 0; /* Not implemented yet */