lkcd
[Top] [All Lists]

Re: new problem: can't see vmdump.h?

To: Matt Robinson <yakker@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: new problem: can't see vmdump.h?
From: Brian Hall <brianw.hall@xxxxxxxxxx>
Date: Fri, 24 Dec 1999 10:30:36 -0700 (MST)
Cc: lkcd@xxxxxxxxxxx
In-reply-to: <Pine.SGI.3.94.991221162449.345821A-100000@awesome.engr.sgi.com>
Reply-to: Brian Hall <brianw.hall@xxxxxxxxxx>
Sender: owner-lkcd@xxxxxxxxxxx
That fixed the vmdump.h problem. Now it actually compiles, with warnings
(implied casts). I notice that dh_esp and dh_eip are 32 bits wide; they will
need to be 64 bit for Alpha; and the other uint32_t(s) in vmdump.c 
(__dump_execute) will also need to be uint64_t(s), and the changes
propagated, correct?

Now, should I go ahead and change dump_header_t to (choose one):
1) make dh_esp,etc uint64_t(s) in the header;
2) add fields specifically for alpha;
3) do #1 and change them to dh_sp and dh_pc while I'm at it?

While it will compile, it fails to link because alpha/vmdump.o can't find
dump_page_buf. Here are the errors:

arch/alpha/kernel/kernel.o: In function `__dump_write_header':
vmdump.c(.text+0xb658): undefined reference to `dump_page_buf'
arch/alpha/kernel/kernel.o: In function `__dump_execute':
vmdump.c(.text+0xb85c): undefined reference to `dump_page_buf'
vmdump.c(.text+0xb934): undefined reference to `dump_page_buf'
vmdump.c(.text+0xb968): undefined reference to `dump_page_buf'
vmdump.c(.text+0xb97c): undefined reference to `dump_page_buf'
arch/alpha/kernel/kernel.o(.text+0xb9bc):vmdump.c: more undefined references to
`dump_page_buf' follow                   

Attached is my current version of arch/alpha/kernel/vmdump.c.

--
Brian Hall <brianw.hall@xxxxxxxxxx>
Linux Consultant

Attachment: vmdump.c
Description: vmdump.c

<Prev in Thread] Current Thread [Next in Thread>