summaryrefslogtreecommitdiff
path: root/sys/src/9/port/segment.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/segment.c
parentfb165d6a54e46712036ec1cf4332905b94c1f97b (diff)
kernel: add support for sticky segments (cached, preallocated, never paged)
Diffstat (limited to 'sys/src/9/port/segment.c')
-rw-r--r--sys/src/9/port/segment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/port/segment.c b/sys/src/9/port/segment.c
index f675ac1c5..bc16c3333 100644
--- a/sys/src/9/port/segment.c
+++ b/sys/src/9/port/segment.c
@@ -155,6 +155,7 @@ dupseg(Segment **seg, int segno, int share)
case SG_SHARED:
case SG_PHYSICAL:
case SG_FIXED:
+ case SG_STICKY:
goto sameseg;
case SG_STACK:
@@ -499,6 +500,7 @@ mfreeseg(Segment *s, uintptr start, ulong pages)
switch(s->type&SG_TYPE){
case SG_PHYSICAL:
case SG_FIXED:
+ case SG_STICKY:
return;
}