mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
Adapt log driver to latest POST changes (POST_SLOWTEST)
This commit is contained in:
parent
2e5983d2ea
commit
2960b65add
1 changed files with 4 additions and 1 deletions
|
@ -75,6 +75,7 @@ void logbuff_init_ptrs (void)
|
||||||
{
|
{
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
unsigned long *ext_tag;
|
unsigned long *ext_tag;
|
||||||
|
unsigned long post_word;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
log_buf = (unsigned char *)(gd->bd->bi_memsize-LOGBUFF_LEN);
|
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_start = (unsigned long *)(log_buf)-3;
|
||||||
ext_log_size = (unsigned long *)(log_buf)-2;
|
ext_log_size = (unsigned long *)(log_buf)-2;
|
||||||
ext_logged_chars = (unsigned long *)(log_buf)-1;
|
ext_logged_chars = (unsigned long *)(log_buf)-1;
|
||||||
|
post_word = post_word_load();
|
||||||
#ifdef CONFIG_POST
|
#ifdef CONFIG_POST
|
||||||
/* The post routines have setup the word so we can simply test it */
|
/* 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;
|
logged_chars = log_size = log_start = 0;
|
||||||
*ext_tag = LOGBUFF_MAGIC;
|
*ext_tag = LOGBUFF_MAGIC;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue