On Wed, Aug 11, 2010 at 6:49 AM, Corentin Chary <corenti...@iksaif.net> wrote: > Add most used bitmap and bitops functions into bitmap.c and bitops.c. > Theses functions are mostly copied from Linux kernel source. > > Some of these functions are already redefined in the VNC server. Some > of them could be used for some block stuff. The yet yo be submitted > NUMA work also need bitmaps. > > Signed-off-by: Corentin Chary <corenti...@iksaif.net> > --- > Makefile.objs | 1 + > bitmap.c | 255 +++++++++++++++++++++++++++++++++++++++++++++++++++++ > bitmap.h | 222 ++++++++++++++++++++++++++++++++++++++++++++++ > bitops.c | 142 ++++++++++++++++++++++++++++++ > bitops.h | 272 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > osdep.h | 4 + > 6 files changed, 896 insertions(+), 0 deletions(-) > create mode 100644 bitmap.c > create mode 100644 bitmap.h > create mode 100644 bitops.c > create mode 100644 bitops.h
I hit a case yesterday where a common bitmap implementation would be nice. For now I've moved the bitmap from hw/openpic.c to bitmap.h and modified hw/apic.c to use it too, but I was kind of hoping this patch would make it in. Any status? Stefan