Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/include In xen_atomic_test_and_clear_bit()
details: https://anonhg.NetBSD.org/src/rev/31f20ef7f404
branches: trunk
changeset: 836304:31f20ef7f404
user: cherry <cherry%NetBSD.org@localhost>
date: Wed Oct 10 04:16:58 2018 +0000
description:
In xen_atomic_test_and_clear_bit()
Use the appropriate sized variable for inline assembler.
diffstat:
sys/arch/xen/include/xen.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 222a07ec3681 -r 31f20ef7f404 sys/arch/xen/include/xen.h
--- a/sys/arch/xen/include/xen.h Wed Oct 10 03:54:54 2018 +0000
+++ b/sys/arch/xen/include/xen.h Wed Oct 10 04:16:58 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen.h,v 1.40 2018/10/07 11:25:55 mlelstv Exp $ */
+/* $NetBSD: xen.h,v 1.41 2018/10/10 04:16:58 cherry Exp $ */
/*
*
@@ -248,7 +248,7 @@
static __inline XATOMIC_T
xen_atomic_test_and_clear_bit(volatile void *ptr, unsigned long bitno)
{
- int result;
+ long result;
__asm volatile(__LOCK_PREFIX
#ifdef __x86_64__
Home |
Main Index |
Thread Index |
Old Index