On 06.03.2007 [12:41:12 +1100], David Gibson wrote:
> The latest spin of the slice_start() slice_end() code in the
> nacc-testing branch breaks compile.  The slice constants need to be
> defined for both 32-bit and 64-bit powerpc.  Patch below fixes.

Signed-off-by, please.

Thanks,
Nish

> Index: libhugetlbfs/hugeutils.c
> ===================================================================
> --- libhugetlbfs.orig/hugeutils.c     2007-03-06 12:39:13.000000000 +1100
> +++ libhugetlbfs/hugeutils.c  2007-03-06 12:39:32.000000000 +1100
> @@ -114,7 +114,7 @@ long gethugepagesize(void)
>       return hpage_size;
>  }
> 
> -#if defined(__powerpc64__)
> +#if defined(__powerpc64__) || defined (__powerpc__)
>  #define SLICE_LOW_SHIFT              28
>  #define SLICE_HIGH_SHIFT     40
> 
> 
> 
> -- 
> David Gibson                  | I'll have my music baroque, and my code
> david AT gibson.dropbear.id.au        | minimalist, thank you.  NOT _the_ 
> _other_
>                               | _way_ _around_!
> http://www.ozlabs.org/~dgibson

-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to