aboutsummaryrefslogtreecommitdiffstats
path: root/tools/console
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-12-01 15:22:22 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-12-01 15:22:22 +0100
commit96428d33d9b6f28ce02902eae1a480b1d8f0e713 (patch)
tree2309ca46a0c07d0d9d84881b437d5e23ed8911fc /tools/console
parent23f0fe07cd3c89f9bf913c9da173e4c0b64bb8b7 (diff)
downloadxen-96428d33d9b6f28ce02902eae1a480b1d8f0e713.tar.gz
xen-96428d33d9b6f28ce02902eae1a480b1d8f0e713.tar.bz2
xen-96428d33d9b6f28ce02902eae1a480b1d8f0e713.zip
Define explicit evtchn_port_t type (32 bits) and plumb up
to user space thru /dev/xen/evtchn. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/console')
-rw-r--r--tools/console/daemon/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
index 9aae032680..a26a6560dc 100644
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -62,7 +62,7 @@ struct domain
struct domain *next;
char *conspath;
int ring_ref;
- int local_port;
+ evtchn_port_t local_port;
int evtchn_fd;
struct xencons_interface *interface;
};
@@ -488,7 +488,7 @@ static void handle_tty_write(struct domain *dom)
static void handle_ring_read(struct domain *dom)
{
- uint16_t v;
+ evtchn_port_t v;
if (!read_sync(dom->evtchn_fd, &v, sizeof(v)))
return;