ia64/xen-unstable

changeset 11053:7c3a27bb291e

[powerpc] Use new method to detect NULL xencomm handle

old method wasted cycles and could give false positive.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Jul 27 18:57:34 2006 -0400 (2006-07-27)
parents a438506e241d
children 61204c1d740e
files xen/arch/powerpc/usercopy.c
line diff
     1.1 --- a/xen/arch/powerpc/usercopy.c	Fri Jul 28 13:00:57 2006 +0100
     1.2 +++ b/xen/arch/powerpc/usercopy.c	Thu Jul 27 18:57:34 2006 -0400
     1.3 @@ -238,5 +238,5 @@ int xencomm_handle_is_null(void *ptr)
     1.4  
     1.5      desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)ptr);
     1.6  
     1.7 -    return (desc->address[0] == XENCOMM_INVALID);
     1.8 +    return (desc->nr_addrs == 0);
     1.9  }