From 13a3d2ed820687e7391e19c8d15975117212bc1a Mon Sep 17 00:00:00 2001 From: manu Date: Wed, 23 Oct 2002 20:45:38 +0000 Subject: [PATCH] In mmap, use the address returned by sys_mmap to keep track of (un)shared regions --- sys/compat/irix/irix_mman.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/compat/irix/irix_mman.c b/sys/compat/irix/irix_mman.c index f4cab36652b2..62ba32f8a14e 100644 --- a/sys/compat/irix/irix_mman.c +++ b/sys/compat/irix/irix_mman.c @@ -1,4 +1,4 @@ -/* $NetBSD: irix_mman.c,v 1.5 2002/10/14 21:14:24 manu Exp $ */ +/* $NetBSD: irix_mman.c,v 1.6 2002/10/23 20:45:38 manu Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.5 2002/10/14 21:14:24 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: irix_mman.c,v 1.6 2002/10/23 20:45:38 manu Exp $"); #include "opt_sysv.h" @@ -226,6 +226,7 @@ out: if (flags & IRIX_MAP_LOCAL) { if ((error = sys_mmap(p, &cup, retval)) != 0) return error; + addr = (void *)*retval; irix_isrr_insert((vaddr_t)addr, len, IRIX_ISRR_PRIVATE, p); return 0; }