Commit Graph

14 Commits

Author SHA1 Message Date
chs
e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
fvdl
d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
simonb
168c4e411f Fix 'struct lwp *' lossage. 2003-06-29 15:07:08 +00:00
wiz
070bb0af6f Tokens after #else are ignored, which is not the intention here. 2002-05-17 12:44:45 +00:00
ad
287977b3d2 Replace one of two divide ops with an AND when calculating the XYMASK
address.
2002-02-22 16:05:27 +00:00
ad
4824a8d9d9 Beef up the stic X interface, and tighten a few screws here and there. 2001-09-18 19:51:23 +00:00
ad
571ef6d823 Make this work on alpha, and fix some other bogons. 2001-03-04 13:32:25 +00:00
ad
1b4eef2721 - Make VDAC state per-board.
- Add an ioctl to reset the STIC.
- Add an ioctl to restore the screen contents from backing.
- Other tweaks.
2001-01-09 16:04:03 +00:00
ad
024d36d353 - Fix bugs, make this useful.
- Add ioctls to start and stop the co-processor (if present).
2000-12-22 13:30:32 +00:00
ad
b5aee7bd4c Thinko. 2000-12-17 14:46:43 +00:00
ad
553c5108d4 Add wscons drivers for the DEC PixelStamp graphics accelerators. 2000-12-17 13:52:03 +00:00
ad
1c9990c901 Removed pending write of fully-functional MI driver. 1999-04-13 19:06:54 +00:00
nisimura
e02862b167 - Don't use void pointer for arithmetic. 1999-01-16 06:36:42 +00:00
jonathan
0bdc6f10b9 Commit `pacifier' driver for turbochannel PMAG-C option card:n
just acknowledge interrupts from the PMAG-C.
1997-11-08 07:27:49 +00:00