Up to [cvs.NetBSD.org] / src / sys / uvm
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: wrstuden-devbsize-19991221
Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 13 00:24:38 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
fvdl-softdep-base,
chs-ubc2-newbase
Changes since 1.17: +19 -5
lines
Diff to previous 1.17 (colored)
Change the pmap_enter() API slightly; pmap_enter() now returns an error value (KERN_SUCCESS or KERN_RESOURCE_SHORTAGE) indicating if it succeeded or failed. Change the `wired' and `access_type' arguments to a single `flags' argument, which includes the access type, and flags: PMAP_WIRED the old `wired' boolean PMAP_CANFAIL pmap_enter() is allowed to fail If PMAP_CANFAIL is not specified, the pmap should behave as it always has in the face of a drastic resource shortage: fall over dead. Change the fault handler to deal with failure (which indicates resource shortage) by unlocking everything, waiting for the pagedaemon to free more memory, then retrying the fault.