Date: Mon, 9 Jul 2007 08:54:17 GMT From: Jesper Brix Rosenkilde <jbr@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123181 for review Message-ID: <200707090854.l698sHNN002223@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707090854.l698sHNN002223>