bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Parse mem= on Linux kernel command line to change initrd loa


From: Jeremy Katz
Subject: Re: [PATCH] Parse mem= on Linux kernel command line to change initrd load address (resend)
Date: 20 Mar 2002 12:06:25 -0500

On Wed, 2002-03-20 at 03:54, Yoshinori K. Okuji wrote:
> At 08 Mar 2002 16:50:57 -0500,
> Jeremy Katz wrote:
> > The attached patch lets GRUB parse a Linux kernel command line for mem=
> > to use as the upper memory location for an initrd as opposed to the
> > maximum detected memory amount per the Linux/I386 boot protocol.
> 
> Is it really necessary to use simple_strtoul? I know safe_parse_maxint
> doesn't do the same thing, because it understands the prefix `0x' and
> the return value is signed, but I suspect that the difference is
> negligible. What do you think?

There'd have to be a different version to handle unsigned longs, though,
as you have to be able to handle a memory size of unsigned long
(although people don't generally do mem=4294967296, it's perfectly valid
to do so)

Jeremy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]