From: Kevin O'Connor Date: Mon, 12 Oct 2009 13:48:12 +0000 (-0400) Subject: Cleanup 'debuginfo' variable in output; add comment. X-Git-Tag: rel-0.5.0~66 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=43562769f9736375f20ebde00601e479fdde9872;p=seabios.git Cleanup 'debuginfo' variable in output; add comment. --- diff --git a/src/output.c b/src/output.c index ab2236b..e860b0b 100644 --- a/src/output.c +++ b/src/output.c @@ -1,6 +1,6 @@ // Raw screen writing and debug output code. // -// Copyright (C) 2008 Kevin O'Connor +// Copyright (C) 2008,2009 Kevin O'Connor // // This file may be distributed under the terms of the GNU LGPLv3 license. @@ -84,8 +84,11 @@ putc_debug(struct putcinfo *action, char c) debug_serial(c); } +// In 16bit mode just need a dummy variable (putc_debug is always used +// anyway), and in 32bit mode need a pointer to the 32bit instance of +// putc_debug(). #if MODE16 -static struct putcinfo debuginfo VAR16 = { putc_debug }; +static struct putcinfo debuginfo VAR16; #else static struct putcinfo debuginfo = { putc_debug }; #endif