Properly initialize the new vmspace and register its pmap.
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 6 Jan 2009 02:18:30 +0000 (03:18 +0100)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 6 Jan 2009 02:57:18 +0000 (03:57 +0100)
commitc75ceda3a3fe7a9bc5f8f9a5ba9cfb726afc1c9f
tree52947486367b8f1d1042a55ae37396a860c92e69
parent055bc3cb5d2d00ead7e6972e3075839fc185a8dd
Properly initialize the new vmspace and register its pmap.

Without this the vmspace's pmap would not be in the global
pmap_list.  This later leads to a panic when sys_exec_sys_unregister
releases the vmspace.

Reported-by: Christian Sturm <athaba@inode.at>
sys/kern/imgact_resident.c