summaryrefslogtreecommitdiff
path: root/sys/src/9/port/fault.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-06-20 21:53:45 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-06-20 21:53:45 +0200
commit2723c9fc775c6366011f6915d3ea1aab085a92fe (patch)
tree5393b31ac24378af22754601d8beeaabca586fe6 /sys/src/9/port/fault.c
parentfb165d6a54e46712036ec1cf4332905b94c1f97b (diff)
kernel: add support for sticky segments (cached, preallocated, never paged)
Diffstat (limited to 'sys/src/9/port/fault.c')
-rw-r--r--sys/src/9/port/fault.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/port/fault.c b/sys/src/9/port/fault.c
index a5e80336c..8180747e4 100644
--- a/sys/src/9/port/fault.c
+++ b/sys/src/9/port/fault.c
@@ -270,6 +270,8 @@ fixfault(Segment *s, uintptr addr, int read)
copypage(old, *pg);
putpage(old);
}
+ /* wet floor */
+ case SG_STICKY: /* Never paged out */
mmuphys = PPN((*pg)->pa) | PTEWRITE | PTEVALID;
(*pg)->modref = PG_MOD|PG_REF;
break;