diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-10 16:54:42 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-10 16:54:42 +0200 |
commit | dbfec06bf1f8de922ca3af09d14675ef44ada5d2 (patch) | |
tree | 157e0375612556991e488cdc6cef84e202dc50ea /sys/src/9/port/userinit.c | |
parent | 0099db7b5b87adb72f1dfa69f893c41ab1c26d6e (diff) |
kernel: fix checkpages() and segflush() on SG_PHYSICAL type segments
do not touch s->map on SG_PHYSICAL type segments as they do
not have a pte map (s->mapsize == 0 && s->map == nil).
also remove the SG_PHYSICAL switch in freepte(), this is never
reached.
Diffstat (limited to 'sys/src/9/port/userinit.c')
-rw-r--r-- | sys/src/9/port/userinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/userinit.c b/sys/src/9/port/userinit.c index c05210449..89a19c1c9 100644 --- a/sys/src/9/port/userinit.c +++ b/sys/src/9/port/userinit.c @@ -54,7 +54,7 @@ proc0(void*) kunmap(k); p->txtflush = ~0; segpage(up->seg[TSEG], p); - up->seg[TSEG]->flushme++; + up->seg[TSEG]->flushme = 1; /* * Become a user process. |