From: Brian Gerst <bgerst@didntduck.org>
To: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
Cc: Adrian Bunk <bunk@fs.tum.de>, Dave Jones <davej@suse.de>,
linux-kernel@vger.kernel.org
Subject: Re: 2.5.14-dj1: misc.o: undefined reference to `__io_virt_debug'
Date: Tue, 07 May 2002 18:43:54 -0400 [thread overview]
Message-ID: <3CD858AA.5050601@didntduck.org> (raw)
In-Reply-To: <Pine.NEB.4.44.0205072137260.9347-100000@mimas.fachschaften.tu-muenchen.de> <278490000.1020811234@flay> <3CD84BA9.95B3E482@didntduck.org> <281270000.1020812456@flay>
[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]
Martin J. Bligh wrote:
>>>>Compiling misc.c with -O0 gives a better error message:
>>>>
>>>><-- snip -->
>>>>
>>>>...
>>>>ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o
>>>>piggy.o
>>>>misc.o: In function `outb_quad':
>>>>misc.o(.text+0x289c): undefined reference to `__io_virt_debug'
>>>>make[2]: *** [bvmlinux] Error 1
>>>>make[2]: Leaving directory
>>>>`/home/bunk/linux/kernel-2.5/linux-2.5.14-modular/arch/i386/boot/compressed'
>>>
>>>Seems like you're not linking in lib/iodebug.c for some reason.
>>>
>>>outb_quad calls readb, which calls __io_virt, which calls __io_virt_debug,
>>>which is defined in iodebug.c
>>
>>It's in the boot decompression code, before any of that stuff is
>>available. I'm working on a patch.
>
>
> Is this arch/i386/boot/compressed/misc.c ?
> I can't see how it would be doing outb_quad, and even if it was, it
> would be totally pointless, as xquad_portio isn't set yet ....
>
> M.
>
This patch fixes the compile problem, but I'm not quite convinced it's
the best solution. The decompressor is a completely seperate
environment from the kernel, so including kernel headers continues to
invite problems like this in the future.
--
Brian Gerst
[-- Attachment #2: io-boot-1 --]
[-- Type: text/plain, Size: 947 bytes --]
diff -urN linux-2.5.14-dj1/arch/i386/boot/compressed/misc.c linux/arch/i386/boot/compressed/misc.c
--- linux-2.5.14-dj1/arch/i386/boot/compressed/misc.c Thu Mar 7 21:18:54 2002
+++ linux/arch/i386/boot/compressed/misc.c Tue May 7 18:04:08 2002
@@ -124,10 +124,6 @@
static int vidport;
static int lines, cols;
-#ifdef CONFIG_MULTIQUAD
-static void *xquad_portio = NULL;
-#endif
-
#include "../../../../lib/inflate.c"
static void *malloc(int size)
@@ -202,10 +198,10 @@
SCREEN_INFO.orig_y = y;
pos = (x + cols * y) * 2; /* Update cursor position */
- outb_p(14, vidport);
- outb_p(0xff & (pos >> 9), vidport+1);
- outb_p(15, vidport);
- outb_p(0xff & (pos >> 1), vidport+1);
+ outb_local(14, vidport); slow_down_io();
+ outb_local(0xff & (pos >> 9), vidport+1); slow_down_io();
+ outb_local(15, vidport); slow_down_io();
+ outb_local(0xff & (pos >> 1), vidport+1); slow_down_io();
}
static void* memset(void* s, int c, size_t n)
next prev parent reply other threads:[~2002-05-07 22:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-07 18:36 2.5.14-dj1: misc.o: undefined reference to `__io_virt_debug' Adrian Bunk
2002-05-07 18:48 ` Adrian Bunk
2002-05-07 18:55 ` Dave Jones
2002-05-07 19:44 ` Adrian Bunk
2002-05-07 20:18 ` Dave Jones
2002-05-07 20:57 ` Dave Jones
2002-05-07 22:40 ` Martin J. Bligh
2002-05-07 21:48 ` Brian Gerst
2002-05-07 23:00 ` Martin J. Bligh
2002-05-07 22:43 ` Brian Gerst [this message]
2002-05-08 0:12 ` Martin J. Bligh
2002-05-07 21:50 ` Dave Jones
2002-05-07 23:42 ` Martin J. Bligh
2002-05-08 0:14 ` Martin J. Bligh
2002-06-16 11:19 ` Adrian Bunk
2002-06-23 14:45 ` Martin J. Bligh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3CD858AA.5050601@didntduck.org \
--to=bgerst@didntduck.org \
--cc=Martin.Bligh@us.ibm.com \
--cc=bunk@fs.tum.de \
--cc=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox