svn commit: r185392 - user/dfr/xenhvm/6/sys/xen/evtchn
Doug Rabson
dfr at FreeBSD.org
Fri Nov 28 08:29:25 PST 2008
Author: dfr
Date: Fri Nov 28 16:29:24 2008
New Revision: 185392
URL: http://svn.freebsd.org/changeset/base/185392
Log:
Make this build on amd64.
Modified:
user/dfr/xenhvm/6/sys/xen/evtchn/evtchn_dev.c
Modified: user/dfr/xenhvm/6/sys/xen/evtchn/evtchn_dev.c
==============================================================================
--- user/dfr/xenhvm/6/sys/xen/evtchn/evtchn_dev.c Fri Nov 28 16:28:04 2008 (r185391)
+++ user/dfr/xenhvm/6/sys/xen/evtchn/evtchn_dev.c Fri Nov 28 16:29:24 2008 (r185392)
@@ -234,14 +234,14 @@ evtchn_ioctl(struct cdev *dev, unsigned
__evtchn_reset_buffer_ring();
break;
case EVTCHN_BIND:
- if ( !synch_test_and_set_bit((int)arg, &bound_ports[0]) )
- unmask_evtchn((int)arg);
+ if ( !synch_test_and_set_bit((uintptr_t)arg, &bound_ports[0]) )
+ unmask_evtchn((uintptr_t)arg);
else
rc = EINVAL;
break;
case EVTCHN_UNBIND:
- if ( synch_test_and_clear_bit((int)arg, &bound_ports[0]) )
- mask_evtchn((int)arg);
+ if ( synch_test_and_clear_bit((uintptr_t)arg, &bound_ports[0]) )
+ mask_evtchn((uintptr_t)arg);
else
rc = EINVAL;
break;
More information about the svn-src-user
mailing list