aboutsummaryrefslogtreecommitdiff
path: root/src/output.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-10-12 09:48:12 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-10-12 09:48:12 -0400
commit43562769f9736375f20ebde00601e479fdde9872 (patch)
treed75c51cd5e52056bee732786f24202603936bbb9 /src/output.c
parenta26df9bd7c8dc3a901994be17ec067abb87c2f1a (diff)
downloadseabios-hppa-43562769f9736375f20ebde00601e479fdde9872.zip
seabios-hppa-43562769f9736375f20ebde00601e479fdde9872.tar.gz
seabios-hppa-43562769f9736375f20ebde00601e479fdde9872.tar.bz2
Cleanup 'debuginfo' variable in output; add comment.
Diffstat (limited to 'src/output.c')
-rw-r--r--src/output.c7
1 files changed, 5 insertions, 2 deletions
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 <kevin@koconnor.net>
+// Copyright (C) 2008,2009 Kevin O'Connor <kevin@koconnor.net>
//
// 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