]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86m AMD IOMMU: cleanup: replace LOW_U32 macro with generic lower_32_bits
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 14 Aug 2008 17:55:17 +0000 (19:55 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 11:56:56 +0000 (13:56 +0200)
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c
include/asm-x86/amd_iommu_types.h

index 028e945c68ade61ae0974596f5f1fd0f5e66088f..de39e1f2ede5f1c820f4abe9fa4f9ec07948419b 100644 (file)
@@ -164,7 +164,7 @@ static int iommu_queue_inv_iommu_pages(struct amd_iommu *iommu,
        address &= PAGE_MASK;
        CMD_SET_TYPE(&cmd, CMD_INV_IOMMU_PAGES);
        cmd.data[1] |= domid;
-       cmd.data[2] = LOW_U32(address);
+       cmd.data[2] = lower_32_bits(address);
        cmd.data[3] = upper_32_bits(address);
        if (s) /* size bit - we flush more than one 4kb page */
                cmd.data[2] |= CMD_INV_IOMMU_PAGES_SIZE_MASK;
index f0beca73e36471ee295fd3e88b526cdbb4004f21..dcc812067394fd5e366810d0d57eb2dbf6f05d70 100644 (file)
@@ -31,9 +31,6 @@
 #define ALIAS_TABLE_ENTRY_SIZE         2
 #define RLOOKUP_TABLE_ENTRY_SIZE       (sizeof(void *))
 
-/* helper macros */
-#define LOW_U32(x) ((x) & ((1ULL << 32)-1))
-
 /* Length of the MMIO region for the AMD IOMMU */
 #define MMIO_REGION_LENGTH       0x4000