login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
19
Re: [patch 1/7] Extended crashkernel command line
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Bernhard Walle <bwalle@...>
Cc: <kexec@...>, <linux-kernel@...>, <linux-arch@...>
Subject:
Re: [patch 1/7] Extended crashkernel command line
Date: Wednesday, September 19, 2007 - 6:32 pm
On Thu, 13 Sep 2007 18:14:29 +0200 Bernhard Walle <bwalle@suse.de> wrote:
quoted text
> This is the generic part of the patch. It adds a parse_crashkernel() function > in kernel/kexec.c that is called by the architecture specific code that > actually reserves the memory. That function takes the whole command line and > looks itself for "crashkernel=" in it. > > If there are multiple occurrences, then the last one is taken. The advantage > is that if you have a bootloader like lilo or elilo which allows you to append > a command line parameter but not to remove one (like in GRUB), then you can add > another crashkernel value for testing at the boot command line and this one > overwrites the command line in the configuration then. > > > Signed-off-by: Bernhard Walle <bwalle@suse.de> > > --- > include/linux/kexec.h | 2 > kernel/kexec.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 141 insertions(+) > > --- a/include/linux/kexec.h > +++ b/include/linux/kexec.h > @@ -179,6 +179,8 @@ extern note_buf_t *crash_notes; > extern u32 vmcoreinfo_note[VMCOREINFO_NOTE_SIZE/4]; > extern unsigned int vmcoreinfo_size; > extern unsigned int vmcoreinfo_max_size; > +int parse_crashkernel(char *cmdline, unsigned long long system_ram, > + unsigned long long *crash_size, unsigned long long *crash_base); > > > #else /* !CONFIG_KEXEC */ > --- a/kernel/kexec.c > +++ b/kernel/kexec.c > @@ -1146,6 +1146,145 @@ static int __init crash_notes_memory_ini > } > module_init(crash_notes_memory_init) > > + > +/* > + * parsing the "crashkernel" commandline > + * > + * this code is intended to be called from architecture specific code > + */ > + > + > +/* > + * This function parses command lines in the format > + * > + * crashkernel=<ramsize-range>:<size>[,...][@<base>] > + * > + * The function returns 0 on success and -EINVAL on failure. > + */ > +static int parse_crashkernel_mem(char *cmdline, > + unsigned long long *crash_size, > + unsigned long long *crash_base, > + unsigned long system_ram) > +{
The patchset seems to be putting a large amount of stuff into .text which could have gone into .text.init? -
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/7] Extended crashkernel command line
, Bernhard Walle
, (Thu Sep 13, 12:14 pm)
Re: [patch 1/7] Extended crashkernel command line
, Andrew Morton
, (Wed Sep 19, 6:32 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 27/56] microblaze_v2: support for a.out
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Rafael J. Wysocki
[Bug #10493] mips BCM47XX compile error
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
11 users
and
951 guests
online.
Online users
biologymajorew
zeekec
caloriecountin
strcmp
carinsuranceknj
articlemarketi
freebabydiaper
wordpressdirec
deskmatzhgw
britaxyfp
truthaboutabsi
Syndicate