Remove UIO_USERISPACE - we do not support any split instruction/data

address space machines (eg: pdp-11) and are not likely to ever do so.
Nothing in our kernel sets this.
This commit is contained in:
peter 2002-06-20 07:08:43 +00:00
parent 6fd22c72af
commit 72c289faf4
2 changed files with 0 additions and 7 deletions

View File

@ -96,7 +96,6 @@ uiomove(cp, n, uio)
switch (uio->uio_segflg) {
case UIO_USERSPACE:
case UIO_USERISPACE:
if (ticks - PCPU_GET(switchticks) >= hogticks)
uio_yield();
if (uio->uio_rw == UIO_READ)
@ -168,7 +167,6 @@ uiomoveco(cp, n, uio, obj)
switch (uio->uio_segflg) {
case UIO_USERSPACE:
case UIO_USERISPACE:
if (ticks - PCPU_GET(switchticks) >= hogticks)
uio_yield();
if (uio->uio_rw == UIO_READ) {
@ -311,10 +309,6 @@ again:
*iov->iov_base = c;
break;
case UIO_USERISPACE:
if (suibyte(iov->iov_base, c) < 0)
return (EFAULT);
break;
case UIO_NOCOPY:
break;
}

View File

@ -52,7 +52,6 @@ enum uio_rw { UIO_READ, UIO_WRITE };
enum uio_seg {
UIO_USERSPACE, /* from user data space */
UIO_SYSSPACE, /* from system space */
UIO_USERISPACE, /* from user I space */
UIO_NOCOPY /* don't copy, already in object */
};