summaryrefslogtreecommitdiff
path: root/ubuntu/ndiswrapper/ntoskernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/ndiswrapper/ntoskernel.h')
-rw-r--r--ubuntu/ndiswrapper/ntoskernel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ubuntu/ndiswrapper/ntoskernel.h b/ubuntu/ndiswrapper/ntoskernel.h
index 46aeb5322ae8..ff0535bc0e94 100644
--- a/ubuntu/ndiswrapper/ntoskernel.h
+++ b/ubuntu/ndiswrapper/ntoskernel.h
@@ -875,7 +875,7 @@ static inline struct nt_slist *PopEntrySList(nt_slist_header *head,
#define u64_low_32(x) ((u32)x)
#define u64_high_32(x) ((u32)(x >> 32))
-static inline u64 cmpxchg8b(volatile u64 *ptr, u64 old, u64 new)
+static inline u64 nt_cmpxchg8b(volatile u64 *ptr, u64 old, u64 new)
{
u64 prev;
@@ -900,7 +900,7 @@ static inline struct nt_slist *PushEntrySList(nt_slist_header *head,
entry->next = old.next;
new.next = entry;
new.depth = old.depth + 1;
- } while (cmpxchg8b(&head->align, old.align, new.align) != old.align);
+ } while (nt_cmpxchg8b(&head->align, old.align, new.align) != old.align);
TRACE4("%p, %p, %p", head, entry, old.next);
return old.next;
}
@@ -917,7 +917,7 @@ static inline struct nt_slist *PopEntrySList(nt_slist_header *head,
break;
new.next = entry->next;
new.depth = old.depth - 1;
- } while (cmpxchg8b(&head->align, old.align, new.align) != old.align);
+ } while (nt_cmpxchg8b(&head->align, old.align, new.align) != old.align);
TRACE4("%p, %p", head, entry);
return entry;
}