[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [QEMU] Correct PAGE_MASK definition
In tools/ioemu/hw/iommu.c, I found #define PAGE_MASK (PAGE_SIZE - 1), I think it's not correct. diff -r dfca1120813f tools/ioemu/hw/iommu.c --- a/tools/ioemu/hw/iommu.c Sun Nov 11 18:28:57 2007 +0000 +++ b/tools/ioemu/hw/iommu.c Tue Nov 13 13:08:16 2007 +0800 @@ -88,7 +88,7 @@ do { printf("IOMMU: " fmt , ##args); } w #define PAGE_SHIFT 14 #endif #define PAGE_SIZE (1 << PAGE_SHIFT) -#define PAGE_MASK (PAGE_SIZE - 1) +#define PAGE_MASK (~(PAGE_SIZE - 1)) typedef struct IOMMUState { uint32_t addr -- Weidong _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |