diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-10 10:34:51 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-10 10:34:51 +0000 |
commit | 9b16af7f254ad018fb7ff8872ae57f62714ece01 (patch) | |
tree | 0a08183ee4de4579e55f3777a643809d57070294 /sys/arch/sparc/dev/cgsix.c | |
parent | cf6163b5efce518222d83d21db6e88f58bfb1ca4 (diff) |
UVM is no longer optional on sparc.
Diffstat (limited to 'sys/arch/sparc/dev/cgsix.c')
-rw-r--r-- | sys/arch/sparc/dev/cgsix.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/sparc/dev/cgsix.c b/sys/arch/sparc/dev/cgsix.c index a0f3194672b..d6f9a6c4e0b 100644 --- a/sys/arch/sparc/dev/cgsix.c +++ b/sys/arch/sparc/dev/cgsix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgsix.c,v 1.13 2000/05/18 13:31:12 jason Exp $ */ +/* $OpenBSD: cgsix.c,v 1.14 2001/05/10 10:34:43 art Exp $ */ /* $NetBSD: cgsix.c,v 1.33 1997/08/07 19:12:30 pk Exp $ */ /* @@ -494,15 +494,9 @@ cgsixioctl(dev, cmd, data, flags, p) if ((u_int)p->size.x > 32 || (u_int)p->size.y > 32) return (EINVAL); count = p->size.y * 32 / NBBY; -#if defined(UVM) if (!uvm_useracc(p->image, count, B_READ) || !uvm_useracc(p->mask, count, B_READ)) return (EFAULT); -#else - if (!useracc(p->image, count, B_READ) || - !useracc(p->mask, count, B_READ)) - return (EFAULT); -#endif } /* parameters are OK; do it */ |