direct-io.hg

changeset 11358:47078e89e663

[XEN][POWERPC] find_space returns garbage

Based-on-patch-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Aug 17 19:03:06 2006 -0400 (2006-08-17)
parents 9b3b420ec064
children 639eb7e6446e
files xen/arch/powerpc/boot_of.c
line diff
     1.1 --- a/xen/arch/powerpc/boot_of.c	Tue Aug 29 13:20:31 2006 -0500
     1.2 +++ b/xen/arch/powerpc/boot_of.c	Thu Aug 17 19:03:06 2006 -0400
     1.3 @@ -700,7 +700,8 @@ static ulong find_space(u32 size, u32 al
     1.4      ulong eomem = ((u64)map->length_high << 32) | (u64)map->length_low;
     1.5      ulong base;
     1.6  
     1.7 -    if (size == 0) return base;
     1.8 +    if (size == 0)
     1.9 +        return 0;
    1.10  
    1.11      if (align == 0)
    1.12          of_panic("cannot call %s() with align of 0\n", __func__);