X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=inline;f=post%2Fpost.c;h=b74e7623169d562c3e69ece9c99790ff7302df7f;hb=dd2c9e6a3b67c8ff56694e515e6e3c7baddd8f52;hp=99dc8c9a74a3d191c894534a1b465f417eed63be;hpb=9692cab76f7b7891f71c8a9b189465cd3bd68ef0;p=u-boot diff --git a/post/post.c b/post/post.c index 99dc8c9a74..b74e762316 100644 --- a/post/post.c +++ b/post/post.c @@ -22,7 +22,7 @@ */ #include -#include +#include #include #include @@ -372,7 +372,7 @@ int post_log (char *format, ...) { va_list args; uint i; - char printbuffer[CFG_PBSIZE]; + char printbuffer[CONFIG_SYS_PBSIZE]; va_start (args, format); @@ -393,6 +393,7 @@ int post_log (char *format, ...) return 0; } +#ifndef CONFIG_RELOC_FIXUP_WORKS void post_reloc (void) { unsigned int i; @@ -437,6 +438,7 @@ void post_reloc (void) } } } +#endif /* @@ -448,7 +450,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 () / CONFIG_SYS_HZ)) - base; #else #warning "Not implemented yet" return 0; /* Not implemented yet */