| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
throat of physio().
Allows individual devices to eventually be modified to support larger
physio() (a.k.a. 'raw') i/o's if they prove capable of them.
No immediate functional change.
Tested for many weeks by and ok robert@.
|
|
|
|
|
|
|
| |
Add a KASSERTMSG() to check that strategy functions didn't screw
b_resid up too much.
ok beck@ tedu@
|
|
|
|
|
|
|
|
| |
minphys() function check for MAXPHYS.
Feedback from tedu@ kettenis@ dlg@
ok cheloha@, robert@, jmatthew@ as part of larger diff
|
|
|
|
| |
ok visa@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
|
|
|
| |
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove UVM_ADV_* wrapper, using the standard names.
ok doug guenther kettenis
|
|
|
|
| |
ok mpi@ kspillner@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
KASSERT() is annoying as it only prints the expression as a string. If you
(developers) want to know a little more information, you have to do:
#ifdef DIAGNOSTIC
if (bad)
panic(...);
#endif
KASSERTMSG() replaces it into a single line:
KASSERTMSG(!bad, ...);
Taken from NetBSD.
(There is a concern that KASSERT() messages are too long; consume more memory,
and not friendly for small monitors. This have to be considered & revisited
later.)
"Like" from henning@
Man page review & advices from jmc@ and schwarze@
|
|
|
|
| |
Verified by deraadt@ to fix distrib/sgi/iso.
|
|
|
|
|
|
| |
between re-use of the same buffer to re-call strategy() - large dd's now
work again which were broken by my last commit of this.
ok krw@
|
|
|
|
| |
ok oga@
|
|
|
|
|
| |
destructive assignment of flags.
ok oga@
|
|
|
|
|
|
|
|
| |
after_unlock code is needed if this happens, and running it was even
wrong because we weren't setting b_resid, so uio_offset (and higher
up, f_offset) would be incorrectly adjusted.
Discussed with deraadt@.
|
|
|
|
|
|
| |
physio().
ok deraadt@
|
|
|
|
|
|
|
|
|
| |
allocated structs, they wont be shared. we dont have to do the silly
B_WANTED dance anymore. get rid of a bunch of comments that talk about
how we're stealing from the swapper, which is a lie now.
tweaks from oga@ scrutiny by matthew@
ok miod@ oga@ thib@ beck@
|
|
|
|
|
|
|
| |
no point in keeping it around.
"i like this" thib@ (a while back); ok krw@ and oga@; reminder to
update the man page and tweaks jmc@
|
|
|
|
|
|
|
|
|
| |
Just like normal vs{,un}lock, but in case the pages we get are not dma
accessible, we bounce them, if they are dma acessible, the functions behave
exactly like normal vslock. The plan for the future is to have fault_wire
allocate dma acessible pages so that we don't need to bounce (especially
in cases where the same buffer is reused for physio over and over again),
but for now, keep it as simple as possible.
|
|
|
|
|
|
|
| |
getphysbuf() as the bufpool is already protected.
From Matthew Dempsky <matthew at dempsky dot org>
OK blambert@
|
|
|
|
| |
ok krw@, miod@.
|
|
|
|
| |
deraadt@ dlg@.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.
From art@, tested by many some time ago.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
broken. Eliminate an unneeded variable and potential conversion issues
in SCIOCCOMMAND code before calling physio.
Similar to what NetBSD does.
Fixes cdda2wav vs "Billie Holiday - Songs for Distingue Lovers"
problem noted by Alexandre Ratchov. Tested by Alexandre.
ok marco@ pedro@ deraadt@ mickey@
|
|
|
|
| |
'go for it' deraadt@
|
| |
|
|
|
|
| |
takes a void *. convert uiomove to take a void * as well. ok deraadt@
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
| |
|
| |
|
|
|
|
|
| |
This time we're getting rid of KERN_* and VM_PAGER_* error codes and
use errnos instead.
|
|
|
|
|
|
| |
While in the area, convert nfs node allocation from malloc to pool and do
some cleanups.
Based on the UBC changes in NetBSD. niklas@ ok.
|
| |
|
|
|
|
| |
(Look ma, I might have broken the tree)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
a risk that we could crash when doing physio/sysctl when the system was
completly out of RAM and swap.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Introduce a new type of map that are interrupt safe and never allow faults
in them. mb_map and kmem_map are made intrsafe.
- Add "access protection" to uvm_vslock (to be passed down to uvm_fault and
later to pmap_enter).
- madvise(2) now works.
- various cleanups.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|