diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 14:24:28 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-19 14:24:28 +0000 |
commit | 060fe1405f9717a6d83692504b0f704208d66dd8 (patch) | |
tree | 02e181bd61d90fc56e1fc812c366cfdd9c541b8e /xen/include/xen/bitmap.h | |
parent | beb6098f214a6c227f0dce614f48cd0fc391da2d (diff) | |
download | xen-060fe1405f9717a6d83692504b0f704208d66dd8.tar.gz xen-060fe1405f9717a6d83692504b0f704208d66dd8.tar.bz2 xen-060fe1405f9717a6d83692504b0f704208d66dd8.zip |
[XEN] Convert between long-based and byte-based bitmap arrays.
Use this for conversion of the domctl_cpumap type on big-endian
systems.
Original patch from Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/bitmap.h')
-rw-r--r-- | xen/include/xen/bitmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/bitmap.h b/xen/include/xen/bitmap.h index 91622645c5..a8cd593d23 100644 --- a/xen/include/xen/bitmap.h +++ b/xen/include/xen/bitmap.h @@ -251,6 +251,9 @@ static inline void bitmap_shift_left(unsigned long *dst, __bitmap_shift_left(dst, src, n, nbits); } +void bitmap_long_to_byte(uint8_t *bp, const unsigned long *lp, int nbits); +void bitmap_byte_to_long(unsigned long *lp, const uint8_t *bp, int nbits); + #endif /* __ASSEMBLY__ */ #endif /* __XEN_BITMAP_H */ |