From: Keir Fraser Subject: Re: [RFC] Re: [PATCH] fix xenctl_cpumap translation to handle bitops accessed like arrays Date: Thu, 21 Dec 2006 10:48:45 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jimi Xenidis , Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 20/12/06 19:05, "Jimi Xenidis" wrote: > Is this what you were looking for? let me know and I'll complete it. > > -JX How about functions long_to_byte_bitmap(bitmap, nr_bits) and byte_to_long_bitmap(bitmap, nr_bits) defined in asm/bitops.h? These would be no-op for ia64 and x86, and could perform an in-place endian swap on each longword on powerpc. -- Keir