From 2723c9fc775c6366011f6915d3ea1aab085a92fe Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 20 Jun 2017 21:53:45 +0200 Subject: kernel: add support for sticky segments (cached, preallocated, never paged) --- sys/src/9/port/fault.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/src/9/port/fault.c') 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; -- cgit v1.2.3