[PATCH 0/9] kexec userspace and purgatory cleanups

2008-04-22 Thread Jamey Sharp
later. Thanks, Jamey Sharp ___ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec

[PATCH 3/9] Conform more closely to Documentation/i386/boot.txt for bzImages.

2008-04-22 Thread Jamey Sharp
DS, ES, FS, and GS were all initialized to 0, but according to boot.txt they need to point to setup_base. Recent kernel versions apparently rely on this point of the spec, though earlier versions didn't. Signed-off-by: Jamey Sharp [EMAIL PROTECTED] --- This patch is arguably incomplete, since SS

Re: kexec --real-mode

2008-04-30 Thread Jamey Sharp
On Wed, Apr 30, 2008 at 12:35:05PM -0700, Eric W. Biederman wrote: ... if we could ever figure out what we are doing that confuses the hardware the other path could be used. In principle, purgatory could load GDB stubs and keep them around at least long enough to debug code running in 16-bit

[PATCH] Prototype ifdown() in kexec.h, not nested in main().

2008-05-15 Thread Jamey Sharp
Signed-off-by: Jamey Sharp [EMAIL PROTECTED] --- Another generic patch extracted from my Windows porting work. kexec/kexec.c |3 +-- kexec/kexec.h |2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/kexec/kexec.c b/kexec/kexec.c index f898428..de9765e 100644 --- a/kexec

[PATCH] Open slurped files in binary mode, on systems where that matters.

2008-05-15 Thread Jamey Sharp
Signed-off-by: Jamey Sharp [EMAIL PROTECTED] --- This patch shouldn't hurt any system that doesn't distinguish between binary and text files, and helps when running on Windows. kexec/kexec.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kexec/kexec.c b/kexec

[RFC] Win32 port of the userspace tools using MinGW.

2008-05-16 Thread Jamey Sharp
OK, I haven't quite gotten around to posting the Windows kernel driver source that goes with this. So I'm not asking that this patch be merged, since nobody else can use it yet. :-) I'd love to get review, though: Does this look like it's in a mergeable state? I'm happy with it, but do I need to

[PATCH] Update KEXEC_ARCH_* constants from Linux kernel headers.

2008-05-16 Thread Jamey Sharp
Signed-off-by: Jamey Sharp [EMAIL PROTECTED] --- I thought I'd need this, but it turned out not to matter. I'm submitting it anyway because keeping kexec-tools in sync with the kernel kexec headers seems like a good idea. kexec/kexec-syscall.h |5 - 1 files changed, 4 insertions(+), 1

Re: [RFC] Win32 port of the userspace tools using MinGW.

2008-05-23 Thread Jamey Sharp
On Fri, May 23, 2008 at 4:12 PM, Simon Horman [EMAIL PROTECTED] wrote: Firstly, thanks for your work in not only getting this port up and going, but methodically posted patches relating to it. You have made my job very easy :-) I tried. I'm happy to hear I succeeded. :-) The patch looks a

Re: [PATCH] Use 'long long' for printf() format string and ELF64 numbers.

2008-05-27 Thread Jamey Sharp
On Sun, May 25, 2008 at 1:11 PM, Bernhard Walle [EMAIL PROTECTED] wrote: kexec/crashdump-elf.c:160: warning: format '%lx' expects type \ 'long unsigned int', but argument 4 has type 'Elf64_Off' This is what inttypes.h is for, right? dbgprintf(%s: p_type = %u, p_offset = 0x%llx p_paddr

Re: [PATCH] Cross compile?

2008-05-27 Thread Jamey Sharp
On Tue, May 27, 2008 at 7:40 AM, Lombard, David N [EMAIL PROTECTED] wrote: ./configure --build=`uname -m`-linux-uclibc \ --host=`uname -m` --prefix=/home/dnl/kboot-11/root \ CC=uclibc-gcc BUILD_CC=host-gcc Isn't this backwards? BUILD_CC ought to match --build, and CC ought to

Re: [PATCH] Fix implicit declaration of inb/outb

2008-06-02 Thread Jamey Sharp
On Mon, Jun 2, 2008 at 4:20 PM, Bernhard Walle [EMAIL PROTECTED] wrote: --- a/purgatory/arch/i386/console-x86.c +++ b/purgatory/arch/i386/console-x86.c @@ -1,5 +1,5 @@ #include stdint.h -#include arch/io.h +#include sys/io.h #include purgatory.h Oh, dear--that doesn't work. I just