Skip to content

Commit

Permalink
x86m AMD IOMMU: cleanup: replace LOW_U32 macro with generic lower_32_…
Browse files Browse the repository at this point in the history
…bits

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Aug 15, 2008
1 parent 9f5f5fb commit 8a45669
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions include/asm-x86/amd_iommu_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8a45669

Please sign in to comment.