Mailing List Archive

[xen-unstable] [XEN][POWERPC] find_space returns garbage
# HG changeset patch
# User Jimi Xenidis <jimix@watson.ibm.com>
# Node ID 47078e89e663e58145e6890862c86254be84b7ae
# Parent 9b3b420ec064ba6933998f82f0e07e0c816bef35
[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>
---
xen/arch/powerpc/boot_of.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 9b3b420ec064 -r 47078e89e663 xen/arch/powerpc/boot_of.c
--- a/xen/arch/powerpc/boot_of.c Tue Aug 29 13:20:31 2006 -0500
+++ b/xen/arch/powerpc/boot_of.c Thu Aug 17 19:03:06 2006 -0400
@@ -700,7 +700,8 @@ static ulong find_space(u32 size, u32 al
ulong eomem = ((u64)map->length_high << 32) | (u64)map->length_low;
ulong base;

- if (size == 0) return base;
+ if (size == 0)
+ return 0;

if (align == 0)
of_panic("cannot call %s() with align of 0\n", __func__);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog