From: wdenk Date: Tue, 15 Jul 2003 21:08:26 +0000 (+0000) Subject: Adapt log driver to latest POST changes (POST_SLOWTEST) X-Git-Tag: U-Boot-0_4_3~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2960b65addd7dcfdc4a4852ca2f557482b58dd22;p=kernel%2Fu-boot.git Adapt log driver to latest POST changes (POST_SLOWTEST) --- diff --git a/common/cmd_log.c b/common/cmd_log.c index ace2d52..8a7860e 100644 --- a/common/cmd_log.c +++ b/common/cmd_log.c @@ -75,6 +75,7 @@ void logbuff_init_ptrs (void) { DECLARE_GLOBAL_DATA_PTR; unsigned long *ext_tag; + unsigned long post_word; char *s; log_buf = (unsigned char *)(gd->bd->bi_memsize-LOGBUFF_LEN); @@ -82,9 +83,11 @@ void logbuff_init_ptrs (void) ext_log_start = (unsigned long *)(log_buf)-3; ext_log_size = (unsigned long *)(log_buf)-2; ext_logged_chars = (unsigned long *)(log_buf)-1; + post_word = post_word_load(); #ifdef CONFIG_POST /* The post routines have setup the word so we can simply test it */ - if ((post_word_load () & 0xffff) == POST_POWERON) { + if (((post_word & 0xffff) == POST_POWERON) || + ((post_word & 0xffff) == POST_SLOWTEST)) { logged_chars = log_size = log_start = 0; *ext_tag = LOGBUFF_MAGIC; }