summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_aout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r--sys/kern/imgact_aout.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index f01a6c1..3da5f99 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: imgact_aout.c,v 1.50 1999/05/09 16:04:06 peter Exp $
+ * $Id: imgact_aout.c,v 1.51 1999/05/14 23:09:00 alc Exp $
*/
#include <sys/param.h>
@@ -190,7 +190,7 @@ exec_aout_imgact(imgp)
file_offset,
virtual_offset, text_end,
VM_PROT_READ | VM_PROT_EXECUTE, VM_PROT_ALL,
- MAP_COPY_ON_WRITE);
+ MAP_COPY_ON_WRITE | MAP_PREFAULT);
if (error) {
vm_map_unlock(map);
return (error);
@@ -202,17 +202,13 @@ exec_aout_imgact(imgp)
file_offset + a_out->a_text,
text_end, data_end,
VM_PROT_ALL, VM_PROT_ALL,
- MAP_COPY_ON_WRITE);
+ MAP_COPY_ON_WRITE | MAP_PREFAULT);
if (error) {
vm_map_unlock(map);
return (error);
}
}
- pmap_object_init_pt(vm_map_pmap(map), virtual_offset,
- object, (vm_pindex_t) OFF_TO_IDX(file_offset),
- a_out->a_text + a_out->a_data, 0);
-
if (bss_size) {
error = vm_map_insert(map, NULL, 0,
data_end, data_end + bss_size,
OpenPOWER on IntegriCloud