Commit 8a456695 authored by Joerg Roedel's avatar Joerg Roedel Committed by Ingo Molnar

x86m AMD IOMMU: cleanup: replace LOW_U32 macro with generic lower_32_bits

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9f5f5fb3
...@@ -164,7 +164,7 @@ static int iommu_queue_inv_iommu_pages(struct amd_iommu *iommu, ...@@ -164,7 +164,7 @@ static int iommu_queue_inv_iommu_pages(struct amd_iommu *iommu,
address &= PAGE_MASK; address &= PAGE_MASK;
CMD_SET_TYPE(&cmd, CMD_INV_IOMMU_PAGES); CMD_SET_TYPE(&cmd, CMD_INV_IOMMU_PAGES);
cmd.data[1] |= domid; cmd.data[1] |= domid;
cmd.data[2] = LOW_U32(address); cmd.data[2] = lower_32_bits(address);
cmd.data[3] = upper_32_bits(address); cmd.data[3] = upper_32_bits(address);
if (s) /* size bit - we flush more than one 4kb page */ if (s) /* size bit - we flush more than one 4kb page */
cmd.data[2] |= CMD_INV_IOMMU_PAGES_SIZE_MASK; cmd.data[2] |= CMD_INV_IOMMU_PAGES_SIZE_MASK;
......
...@@ -31,9 +31,6 @@ ...@@ -31,9 +31,6 @@
#define ALIAS_TABLE_ENTRY_SIZE 2 #define ALIAS_TABLE_ENTRY_SIZE 2
#define RLOOKUP_TABLE_ENTRY_SIZE (sizeof(void *)) #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 */ /* Length of the MMIO region for the AMD IOMMU */
#define MMIO_REGION_LENGTH 0x4000 #define MMIO_REGION_LENGTH 0x4000
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment