Avoid unnecessary call to post_word_load();

make logbuf compile without POST
This commit is contained in:
wdenk 2003-07-15 21:50:34 +00:00
parent 2960b65add
commit 667122af2d
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ void logbuff_init_ptrs (void)
} }
#else #else
/* No post routines, so we do our own checking */ /* No post routines, so we do our own checking */
if (post_word_load () != LOGBUFF_MAGIC) { if (post_word != LOGBUFF_MAGIC) {
logged_chars = log_size = log_start = 0; logged_chars = log_size = log_start = 0;
post_word_store (LOGBUFF_MAGIC); post_word_store (LOGBUFF_MAGIC);
*ext_tag = LOGBUFF_MAGIC; *ext_tag = LOGBUFF_MAGIC;

View file

@ -70,7 +70,7 @@ typedef struct global_data {
#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO) #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
unsigned long fb_base; /* Base address of framebuffer memory */ unsigned long fb_base; /* Base address of framebuffer memory */
#endif #endif
#ifdef CONFIG_POST #if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
unsigned long post_log_word; /* Record POST activities */ unsigned long post_log_word; /* Record POST activities */
unsigned long post_init_f_time; /* When post_init_f started */ unsigned long post_init_f_time; /* When post_init_f started */
#endif #endif