summaryrefslogtreecommitdiff
path: root/sys/dev/ic/bt463.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-27 04:46:00 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-27 04:46:00 +0000
commit33c5053a3b68247342e963b6b0bf7e5a02533658 (patch)
treed583cdb9dad31d57f79662d6d1ffb12531b99f5a /sys/dev/ic/bt463.c
parent5735641be7d63cc0eda40d031cada993a637808e (diff)
zap old vm
Diffstat (limited to 'sys/dev/ic/bt463.c')
-rw-r--r--sys/dev/ic/bt463.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/ic/bt463.c b/sys/dev/ic/bt463.c
index 2a38c35ccdb..2e9cbb91e85 100644
--- a/sys/dev/ic/bt463.c
+++ b/sys/dev/ic/bt463.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bt463.c,v 1.3 2001/04/21 20:03:54 aaron Exp $ */
+/* $OpenBSD: bt463.c,v 1.4 2001/06/27 04:45:57 art Exp $ */
/* $NetBSD: bt463.c,v 1.2 2000/06/13 17:21:06 nathanw Exp $ */
/*-
@@ -369,17 +369,10 @@ bt463_set_cmap(rc, cmapp)
if ((u_int)cmapp->index >= BT463_NCMAP_ENTRIES ||
((u_int)cmapp->index + (u_int)cmapp->count) > BT463_NCMAP_ENTRIES)
return (EINVAL);
-#if defined(UVM)
if (!uvm_useracc(cmapp->red, cmapp->count, B_READ) ||
!uvm_useracc(cmapp->green, cmapp->count, B_READ) ||
!uvm_useracc(cmapp->blue, cmapp->count, B_READ))
return (EFAULT);
-#else
- if (!useracc(cmapp->red, cmapp->count, B_READ) ||
- !useracc(cmapp->green, cmapp->count, B_READ) ||
- !useracc(cmapp->blue, cmapp->count, B_READ))
- return (EFAULT);
-#endif
s = spltty();
@@ -434,17 +427,10 @@ bt463_check_curcmap(rc, cursorp)
(u_int)cursorp->cmap.count) > 2)
return (EINVAL);
count = cursorp->cmap.count;
-#if defined(UVM)
if (!uvm_useracc(cursorp->cmap.red, count, B_READ) ||
!uvm_useracc(cursorp->cmap.green, count, B_READ) ||
!uvm_useracc(cursorp->cmap.blue, count, B_READ))
return (EFAULT);
-#else
- if (!useracc(cursorp->cmap.red, count, B_READ) ||
- !useracc(cursorp->cmap.green, count, B_READ) ||
- !useracc(cursorp->cmap.blue, count, B_READ))
- return (EFAULT);
-#endif
return (0);
}