login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
13
Re: [PATCH] kexec jump: fix code size checking
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Vivek Goyal
Subject:
Re: [PATCH] kexec jump: fix code size checking
Date: Wednesday, August 13, 2008 - 6:21 am
On Wed, Aug 13, 2008 at 11:05:15AM +0800, Huang Ying wrote:
quoted text
> On Wed, 2008-08-13 at 12:47 +1000, Simon Horman wrote: > > On Wed, Aug 13, 2008 at 09:04:35AM +0800, Huang Ying wrote: > > > Fix building issue when CONFIG_KEXEC=n. Thanks to Vivek Goyal for his > > > reminding. > > > > > > Signed-off-by: Huang Ying <ying.huang@intel.com> > > > > > > --- > > > include/asm-x86/kexec.h | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > --- a/include/asm-x86/kexec.h > > > +++ b/include/asm-x86/kexec.h > > > @@ -43,6 +43,9 @@ > > > > > > #ifdef CONFIG_X86_32 > > > # define KEXEC_CONTROL_CODE_MAX_SIZE 2048 > > > +# ifndef CONFIG_KEXEC > > > +# define kexec_control_code_size 0 > > > +# endif > > > #endif > > > > > > #ifndef __ASSEMBLY__ > > > > Is it impossible to skip the linker check in the !CONFIG_KEXEC case? > > It is possible. I think there are several ways to do that. > > 1) use #ifdef in vmlinux_32.lds.S, such as: > > #ifdef CONFIG_KEXEC > ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE, > "kexec control code size is too big") > #endif > > 2) #define a macro for kexec check ld script in asm/kexec.h, such as: > > #define LD_CHECK_KEXEC() ASSERT(kexec_control_code_size <= KEXEC_CONTROL_CODE_MAX_SIZE, \ > "kexec control code size is too big") > > and use that in vmlinux_32.lds.S. > > 3) #define kexec_control_code_size 0. So that the check can be passed > always. And, code size = 0 is reasonable for no code (CONFIG_KEXEC=n). > > > I think 3) is better. What do you think about? >
I think 1) is good enough. Thanks Vivek --
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] kexec jump: fix code size checking
, Huang Ying
, (Tue Aug 12, 6:04 pm)
Re: [PATCH] kexec jump: fix code size checking
, Simon Horman
, (Tue Aug 12, 7:47 pm)
Re: [PATCH] kexec jump: fix code size checking
, Huang Ying
, (Tue Aug 12, 8:05 pm)
Re: [PATCH] kexec jump: fix code size checking
, Eric W. Biederman
, (Tue Aug 12, 8:40 pm)
Re: [PATCH] kexec jump: fix code size checking
, Simon Horman
, (Tue Aug 12, 8:48 pm)
Re: [PATCH] kexec jump: fix code size checking
, Huang Ying
, (Tue Aug 12, 10:18 pm)
Re: [PATCH] kexec jump: fix code size checking
, Simon Horman
, (Tue Aug 12, 10:51 pm)
Re: [PATCH] kexec jump: fix code size checking
, Vivek Goyal
, (Wed Aug 13, 6:19 am)
Re: [PATCH] kexec jump: fix code size checking
, Vivek Goyal
, (Wed Aug 13, 6:21 am)
Re: [PATCH] kexec jump: fix code size checking
, Andrew Morton
, (Wed Aug 13, 10:07 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [patch] e1000=y && e1000e=m regression fix
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Boaz Harrosh
how to use KBUILD_EXTRA_SYMBOLS
Brandeburg, Jesse
RE: [regression] e1000e broke e1000 (was: Re: [ANNOUNCE] e1000 toe1000e migration ...
Pekka Enberg
Re: [PATCH] include/linux/slab.h: new KFREE() macro.
git
:
Bill Lear
cpio command not found
Jing Xue
Re: git rm --cached
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Johannes Schindelin
Re: [PATCH 1/3 v2] Implement the patience diff algorithm
Johannes Sixt
Re: How to pull remote branch with specified commit id?
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Oliver Neukum
Re: [RFC] Patch to option HSO driver to the kernel
Paulius Zaleckas
Re: [RFC] Patch to option HSO driver to the kernel
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
openbsd-misc
:
Tomas Bodzar
Re: OpenSMTPd actual development and integration
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Bryan Irvine
Re: DVD burn error: No space left on device
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Siju George
This is what Linus Torvalds calls openBSD crowd
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
[ARM] mmp: avengers lite (pxa168) board bring up
Linux Kernel Mailing List
via82cxxx: add support for VT6415 PCIE PATA IDE Host Controller
Linux Kernel Mailing List
checkpatch: warn on declaration with storage class not at the beginning
Linux Kernel Mailing List
USB: remove duplicate entry in Option driver and Pl2303 driver for Huawei modem
Colocation donated by:
Syndicate