Make log_buf global so I know where it is and can watch it with the arium.

Fix m754lmr/Config so it works with DoC
This commit is contained in:
Ronald G. Minnich 2001-08-29 16:22:50 +00:00
commit 5d0eea342e
2 changed files with 7 additions and 5 deletions

View file

@ -14,7 +14,7 @@ static char rcsid[] = "$Id$";
#include <stdarg.h>
#include <smp/spinlock.h>
static char buf[1024];
char log_buf[1024];
/* printk's without a loglevel use this.. */
#define DEFAULT_MESSAGE_LOGLEVEL 4 /* BIOS_WARNING */
@ -50,10 +50,10 @@ int do_printk(int msg_level, const char *fmt, ...)
spin_lock(&console_lock);
va_start(args, fmt);
i = vsprintf(buf, fmt, args); /* hopefully i < sizeof(buf)-4 */
i = vsprintf(log_buf, fmt, args); /* hopefully i < sizeof(log_buf)-4 */
va_end(args);
display(buf);
display(log_buf);
spin_unlock(&console_lock);

View file

@ -1,8 +1,10 @@
arch i386
mainboardinit cpu/i386/entry16.inc
ldscript cpu/i386/entry16.lds
mainboardinit cpu/i386/reset16.inc
ldscript cpu/i386/reset16.lds
# These are ONLY used for doc.
#mainboardinit cpu/i386/reset16.inc
#ldscript cpu/i386/reset16.lds
mainboardinit superio/acer/m1535/setup_serial.inc
mainboardinit pc80/serial.inc