Date: Sat, 27 Sep 2003 15:28:14 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_exec.c src/sys/vm vm_map.c vm_map.h vm_mmap.c Message-ID: <200309272228.h8RMSEO6076136@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2003/09/27 15:28:14 PDT FreeBSD src repository Modified files: sys/kern kern_exec.c sys/vm vm_map.c vm_map.h vm_mmap.c Log: Part 2 of implementing rstacks: add the ability to create rstacks and use the ability on ia64 to map the register stack. The orientation of the stack (i.e. its grow direction) is passed to vm_map_stack() in the overloaded cow argument. Since the grow direction is represented by bits, it is possible and allowed to create bi-directional stacks. This is not an advertised feature, more of a side-effect. Fix a bug in vm_map_growstack() that's specific to rstacks and which we could only find by having the ability to create rstacks: when the mapped stack ends at the faulting address, we have not actually mapped the faulting address. we need to include or cover the faulting address. Note that at this time mmap(2) has not been extended to allow the creation of rstacks by processes. If such a need arises, this can be done. Tested on: alpha, i386, ia64, sparc64 Revision Changes Path 1.227 +9 -15 src/sys/kern/kern_exec.c 1.310 +56 -40 src/sys/vm/vm_map.c 1.103 +2 -0 src/sys/vm/vm_map.h 1.167 +2 -2 src/sys/vm/vm_mmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309272228.h8RMSEO6076136>