ia64/xen-unstable

changeset 15403:499bab040137

x86: Use 64-bit arithmetic in reserve_in_boot_e820().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Jun 20 15:08:32 2007 +0100 (2007-06-20)
parents 3624ba0caccc
children 45a44a9cbe8d
files xen/arch/x86/setup.c
line diff
     1.1 --- a/xen/arch/x86/setup.c	Wed Jun 20 15:06:17 2007 +0100
     1.2 +++ b/xen/arch/x86/setup.c	Wed Jun 20 15:08:32 2007 +0100
     1.3 @@ -295,14 +295,14 @@ static struct e820map __initdata boot_e8
     1.4  /* Reserve area (@s,@e) in the temporary bootstrap e820 map. */
     1.5  static void __init reserve_in_boot_e820(unsigned long s, unsigned long e)
     1.6  {
     1.7 -    unsigned long rs, re;
     1.8 +    uint64_t rs, re;
     1.9      int i;
    1.10  
    1.11      for ( i = 0; i < boot_e820.nr_map; i++ )
    1.12      {
    1.13          /* Have we found the e820 region that includes the specified range? */
    1.14          rs = boot_e820.map[i].addr;
    1.15 -        re = boot_e820.map[i].addr + boot_e820.map[i].size;
    1.16 +        re = rs + boot_e820.map[i].size;
    1.17          if ( (s < rs) || (e > re) )
    1.18              continue;
    1.19