85b996c375
This includes stub domains support, but it should be considered experimental at this time. Stub domains hangs with serial ports, or more more than one virual disk (multiple virtual ethernet have not been tested).
22 lines
679 B
C
22 lines
679 B
C
$NetBSD: patch-tools_libs_evtchn_netbsd.c,v 1.1 2017/03/30 09:15:10 bouyer Exp $
|
|
|
|
--- tools/libs/evtchn/netbsd.c.orig 2017-03-24 18:23:27.000000000 +0100
|
|
+++ tools/libs/evtchn/netbsd.c 2017-03-24 18:23:40.000000000 +0100
|
|
@@ -124,7 +124,7 @@
|
|
int fd = xce->fd;
|
|
evtchn_port_t port;
|
|
|
|
- if ( read_exact(fd, (char *)&port, sizeof(port)) == -1 )
|
|
+ if ( read(fd, (char *)&port, sizeof(port)) == -1 )
|
|
return -1;
|
|
|
|
return port;
|
|
@@ -133,7 +133,7 @@
|
|
int xenevtchn_unmask(xenevtchn_handle *xce, evtchn_port_t port)
|
|
{
|
|
int fd = xce->fd;
|
|
- return write_exact(fd, (char *)&port, sizeof(port));
|
|
+ return write(fd, (char *)&port, sizeof(port));
|
|
}
|
|
|
|
/*
|