aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/iommu/intel_dmar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/x86/iommu/intel_dmar.h')
-rw-r--r--sys/x86/iommu/intel_dmar.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/x86/iommu/intel_dmar.h b/sys/x86/iommu/intel_dmar.h
index 6d25ac3644e6..af151aa6f91f 100644
--- a/sys/x86/iommu/intel_dmar.h
+++ b/sys/x86/iommu/intel_dmar.h
@@ -524,8 +524,7 @@ extern struct timespec dmar_hw_timeout;
} else { \
forever = false; \
nanouptime(&curr); \
- last = curr; \
- timespecadd(&last, &dmar_hw_timeout); \
+ timespecadd(&curr, &dmar_hw_timeout, &last); \
} \
for (;;) { \
if (cond) { \