login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
March
»
16
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Horms
Subject:
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps
Date: Friday, March 16, 2007 - 12:30 am
On Fri, Mar 16, 2007 at 07:17:43AM +0000, Ian Campbell wrote:
quoted text
> On Fri, 2007-03-16 at 08:48 +0900, Horms wrote: > > > > > > > > Signed-off-by: Ian Campbell <ian.campbell@xensource.com> > > > > > > > > diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c > > > > index d960507..523e109 100644 > > > > --- a/fs/proc/vmcore.c > > > > +++ b/fs/proc/vmcore.c > > > > @@ -514,7 +514,7 @@ static int __init parse_crash_elf64_headers(void) > > > > /* Do some basic Verification. */ > > > > if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 || > > > > (ehdr.e_type != ET_CORE) || > > > > - !elf_check_arch(&ehdr) || > > > > + !vmcore_elf_check_arch(&ehdr) || > > > > ehdr.e_ident[EI_CLASS] != ELFCLASS64 || > > > > ehdr.e_ident[EI_VERSION] != EV_CURRENT || > > > > ehdr.e_version != EV_CURRENT || > > > > diff --git a/include/asm-i386/kexec.h b/include/asm-i386/kexec.h > > > > index 4dfc9f5..c76737e 100644 > > > > --- a/include/asm-i386/kexec.h > > > > +++ b/include/asm-i386/kexec.h > > > > @@ -47,6 +47,9 @@ > > > > /* The native architecture */ > > > > #define KEXEC_ARCH KEXEC_ARCH_386 > > > > > > > > +/* We can also handle crash dumps from 64 bit kernel. */ > > > > +#define vmcore_elf_check_arch_cross(x) ((x)->e_machine == EM_X86_64) > > > > + > > > > > > Ideal place for this probably should have been arch dependent crash_dump.h > > > file. But we don't have one and no point introducing one just for this > > > macro. > > > > > > This change looks good to me. > > > > Won't the above change break non i386 archtectures as > > vmcore_elf_check_arch_cross isn't defined for them? > > No, because of this hunk:
Thanks, silly me :( -- Horms H:
http://www.vergenet.net/~horms/
W:
http://www.valinux.co.jp/en/
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/1] Allow i386 crash kernels to handle x86_64 dumps
, Ian Campbell
, (Wed Mar 14, 10:00 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Horms
, (Wed Mar 14, 6:46 pm)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Vivek Goyal
, (Wed Mar 14, 9:55 pm)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Horms
, (Wed Mar 14, 10:07 pm)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Vivek Goyal
, (Wed Mar 14, 10:47 pm)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Horms
, (Thu Mar 15, 1:00 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Ian Campbell
, (Thu Mar 15, 5:22 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Vivek Goyal
, (Thu Mar 15, 6:26 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Ian Campbell
, (Thu Mar 15, 6:42 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Horms
, (Thu Mar 15, 4:46 pm)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Horms
, (Thu Mar 15, 4:48 pm)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Vivek Goyal
, (Thu Mar 15, 7:27 pm)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Magnus Damm
, (Thu Mar 15, 7:40 pm)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Vivek Goyal
, (Thu Mar 15, 7:42 pm)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Vivek Goyal
, (Thu Mar 15, 8:22 pm)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Horms
, (Fri Mar 16, 12:10 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Ian Campbell
, (Fri Mar 16, 12:17 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Ian Campbell
, (Fri Mar 16, 12:28 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Horms
, (Fri Mar 16, 12:30 am)
Re: [PATCH 1/1] Allow i386 crash kernels to handle x86_64 ...
, Ian Campbell
, (Fri Mar 16, 12:31 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Magnus Damm
, (Fri Mar 16, 12:50 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Magnus Damm
, (Fri Mar 16, 12:59 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Ian Campbell
, (Fri Mar 16, 1:50 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Magnus Damm
, (Fri Mar 16, 2:20 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Vivek Goyal
, (Fri Mar 16, 2:26 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Vivek Goyal
, (Fri Mar 16, 2:35 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Magnus Damm
, (Fri Mar 16, 3:05 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Vivek Goyal
, (Fri Mar 16, 4:38 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Ian Campbell
, (Fri Mar 16, 4:40 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Vivek Goyal
, (Fri Mar 16, 5:25 am)
Re: [Fastboot] [PATCH 1/1] Allow i386 crash kernels to han ...
, Vivek Goyal
, (Fri Mar 16, 5:31 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
Michael S. Tsirkin
[PATCH 3/3] vhost: fix get_user_pages_fast error handling
Jeff Garzik
Re: [0/3] POHMELFS high performance network filesystem. First steps in parallel pr...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Colocation donated by:
Syndicate