lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 15 Sep 2008 07:40:42 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Marco Stornelli <marco.stornelli@...itel.it>
Cc:	Linux AVR32 <kernel@...32linux.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] avr32: added mem kernel command line option support

On Mon, 15 Sep 2008 12:07:19 +0200 Marco Stornelli wrote:

> From: Marco Stornelli <marco.stornelli@...il.com>
> 
> Added support for the mem kernel command line option
> Signed-off-by: Marco Stornelli <marco.stornelli@...il.com>
> ---
> --- setup.c.orig    2008-09-15 11:30:00.000000000 +0200
> +++ setup.c    2008-09-15 11:30:17.000000000 +0200
> @@ -283,6 +283,25 @@ static int __init early_parse_fbmem(char
>  }
>  early_param("fbmem", early_parse_fbmem);
>  
> +/*
> + * Pick out the memory size.  We look for mem=size@...rt,
> + * where start and size are "size[KkMm]"

                                    [KkMmGg]

> + */
> +static int __init early_mem(char **p)
> +{
> +    unsigned long size, start;
> +
> +    start = system_ram->start;
> +    size  = memparse(*p, p);

memparse() returns an unsigned long long.  Is the truncation OK for avr32?

> +    if (**p == '@')
> +        start = memparse(*p + 1, p);
> +
> +    system_ram->start = start;
> +    system_ram->end = system_ram->start + size - 1;
> +    return 0;
> +}
> +early_param("mem", early_mem);
> +
>  static int __init parse_tag_core(struct tag *tag)
>  {
>      if (tag->hdr.size > 2) {
> --



---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ