diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-10-08 08:51:24 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-10-08 08:51:24 -0400 |
commit | ebd426bf13bf6a1de9e1321853da7ced31ca48f4 (patch) | |
tree | 84a2317d6ea491d912d50d69ebc93edece87233e /src/output.c | |
parent | b2fd1f3a3bec5dbe883ad1b1fba2adc23babbf78 (diff) | |
download | seabios-ebd426bf13bf6a1de9e1321853da7ced31ca48f4.tar.gz |
Really fix linker issue with "debuginfo" variable.
The 16bit and 32bit code can't share debuginfo because it points to
code and must point to 16bit code in 16bit mode. Introduce two
separate variables - one for 32bit mode and one for 16bit mode.
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/output.c b/src/output.c index b5b7d52f..ab2236b1 100644 --- a/src/output.c +++ b/src/output.c @@ -84,7 +84,11 @@ putc_debug(struct putcinfo *action, char c) debug_serial(c); } -struct putcinfo debuginfo VAR16VISIBLE = { putc_debug }; +#if MODE16 +static struct putcinfo debuginfo VAR16 = { putc_debug }; +#else +static struct putcinfo debuginfo = { putc_debug }; +#endif /**************************************************************** |