ia64/xen-unstable

changeset 12772:b08b870770f9

[PATCH 02/02] Kexec / Kdump: Don't declare _end

_end is already declared in xen/include/asm/config.h, so don't declare
it twice. This solves a powerpc/ia64 build problem where _end is declared
as char _end[] compared to unsigned long _end on x86.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
author Ian Campbell <ian.campbell@xensource.com>
date Mon Dec 04 09:08:47 2006 +0000 (2006-12-04)
parents f4089172c96b
children 275a8f9a0710
files xen/common/kexec.c
line diff
     1.1 --- a/xen/common/kexec.c	Mon Dec 04 09:08:47 2006 +0000
     1.2 +++ b/xen/common/kexec.c	Mon Dec 04 09:08:47 2006 +0000
     1.3 @@ -158,7 +158,7 @@ static int kexec_get_reserve(xen_kexec_r
     1.4      return 0;
     1.5  }
     1.6  
     1.7 -extern unsigned long _text, _end;
     1.8 +extern unsigned long _text;
     1.9  
    1.10  static int kexec_get_xen(xen_kexec_range_t *range, int get_ma)
    1.11  {
    1.12 @@ -167,7 +167,7 @@ static int kexec_get_xen(xen_kexec_range
    1.13      else
    1.14          range->start = (unsigned long) &_text;
    1.15  
    1.16 -    range->size = &_end - &_text;
    1.17 +    range->size = (unsigned long)&_end - (unsigned long)&_text;
    1.18      return 0;
    1.19  }
    1.20