kexec-tools: Unify code and add Xen support

This set of patches breaks out duplicated code from arch-specific files and
tries to make the code generic. This to make future code maintainance as 
simple as possible and to prevent introduction of more copy-and-paste bugs.
The patch does this while at the same time adding Xen support and squeezing
a few bugs.

I wouldn't say the code is tested well or anything, but I'd like to hear what
you think. I'd be happy to test and fix up kexec with 2.6.19-rc6 on i386 and 
x86_64 platforms next week if I can get some positive feedback. =)

There is of course duplicated code left, but this is at least a first step 
in the right direction IMO.

Signed-off-by: Magnus Damm <[EMAIL PROTECTED]>
---

 kexec/Makefile                       |    3
 kexec/arch/i386/crashdump-x86.c      |  287 +++++-----------------------------
 kexec/arch/ia64/crashdump-ia64.c     |  185 +++++----------------
 kexec/arch/ppc64/crashdump-ppc64.c   |  154 ++++--------------
 kexec/arch/x86_64/crashdump-x86_64.c |  232 +++------------------------
 kexec/crashdump-elf.c                |  211 +++++++++++++++++++++++-
 kexec/crashdump-xen.c                |  164 +++++++++++++++++++
 kexec/crashdump.c                    |   24 ++
 kexec/crashdump.h                    |   38 ++++
 kexec/kexec-iomem.c                  |  121 ++++++++++++--
 kexec/kexec.h                        |   17 ++
 11 files changed, 702 insertions(+), 734 deletions(-)
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to