From owner-p4-projects@FreeBSD.ORG Mon Jul 9 08:54:18 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 264D316A46B; Mon, 9 Jul 2007 08:54:18 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC56C16A468 for ; Mon, 9 Jul 2007 08:54:17 +0000 (UTC) (envelope-from jbr@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id DD6DF13C45A for ; Mon, 9 Jul 2007 08:54:17 +0000 (UTC) (envelope-from jbr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l698sH1A002226 for ; Mon, 9 Jul 2007 08:54:17 GMT (envelope-from jbr@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l698sHNN002223 for perforce@freebsd.org; Mon, 9 Jul 2007 08:54:17 GMT (envelope-from jbr@FreeBSD.org) Date: Mon, 9 Jul 2007 08:54:17 GMT Message-Id: <200707090854.l698sHNN002223@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jbr@FreeBSD.org using -f From: Jesper Brix Rosenkilde To: Perforce Change Reviews Cc: Subject: PERFORCE change 123181 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 08:54:18 -0000 http://perforce.freebsd.org/chv.cgi?CH=123181 Change 123181 by jbr@jbr_bob on 2007/07/09 08:53:35 Added new vm_offset for sharememory. Added call to allocate sysshm. Affected files ... .. //depot/projects/soc2007/jbr-syscall/sys/kern/kern_exec.c#2 edit .. //depot/projects/soc2007/jbr-syscall/sys/sys/sysent.h#2 edit Differences ... ==== //depot/projects/soc2007/jbr-syscall/sys/kern/kern_exec.c#2 (text+ko) ==== @@ -918,6 +918,11 @@ map = &vmspace->vm_map; } + /* Allocate memory shared between process and kernel */ + error = vm_map_sysshm(map, sv->sv_minuser); + if (error) + return (error); + /* Allocate a new stack */ stack_addr = sv->sv_usrstack - maxssiz; error = vm_map_stack(map, stack_addr, (vm_size_t)maxssiz, ==== //depot/projects/soc2007/jbr-syscall/sys/sys/sysent.h#2 (text+ko) ==== @@ -95,6 +95,8 @@ vm_offset_t sv_maxuser; /* VM_MAXUSER_ADDRESS */ vm_offset_t sv_usrstack; /* USRSTACK */ vm_offset_t sv_psstrings; /* PS_STRINGS */ + vm_offset_t sv_sysshm; /* memory shared between proccess and + kernel */ int sv_stackprot; /* vm protection for stack */ register_t *(*sv_copyout_strings)(struct image_params *); void (*sv_setregs)(struct thread *, u_long, u_long, u_long);