diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-30 22:49:13 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-30 22:49:13 +0200 |
commit | 1057a859b8aa0270f330b2fc11118e1f5f924d74 (patch) | |
tree | a4fb11a0f2d6df6c16e92fc90b2920ca1f801e82 /sys/src/9/port/sysproc.c | |
parent | f8467210359d5c4e576e8c4aa89177902517ec5b (diff) |
devsegment: cleanups
- return distinct error message when attempting to create Globalseg with physseg name
- copy directory name to up->genbuf so it stays valid after we unlock(&glogalseglock)
- cleanup wstat() handling, allow changing uid
- make sure global segment size is below SEGMAXSIZE
- move isoverlap() check from globalsegattach() into segattach()
- remove Proc* argument from globalsegattach(), segattach() and isoverlap()
- make Physseg.attr and segattach attr parameter an int for consistency
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r-- | sys/src/9/port/sysproc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c index 267a4b20c..6cc23c265 100644 --- a/sys/src/9/port/sysproc.c +++ b/sys/src/9/port/sysproc.c @@ -429,7 +429,7 @@ sysexec(va_list list) tstk = s->base; if(tstk <= USTKSIZE) error(Enovmem); - } while((s = isoverlap(up, tstk-USTKSIZE, USTKSIZE)) != nil); + } while((s = isoverlap(tstk-USTKSIZE, USTKSIZE)) != nil); up->seg[ESEG] = newseg(SG_STACK, tstk-USTKSIZE, USTKSIZE/BY2PG); /* @@ -785,12 +785,12 @@ syssegbrk(va_list list) uintptr syssegattach(va_list list) { - ulong attr; + int attr; char *name; uintptr va; ulong len; - attr = va_arg(list, ulong); + attr = va_arg(list, int); name = va_arg(list, char*); va = va_arg(list, uintptr); len = va_arg(list, ulong); @@ -800,7 +800,7 @@ syssegattach(va_list list) free(name); nexterror(); } - va = segattach(up, attr, name, va, len); + va = segattach(attr, name, va, len); free(name); poperror(); return va; |