brooks ff1fac3cb1 Remove a needlessly clever hack to start init with sys_exec().
Construct a struct image_args with the help of new exec_args_*() helper
functions and call kern_execve().

The previous code mapped a page in userspace, copied arguments out
to it one at a time, and then constructed a struct execve_args all so
that sys_execve() can call exec_copyin_args() to copy the data back in
to a struct image_args.

Opencode the part of pre_execve()/post_execve() that releases a
reference to the initial vmspace. We don't need to stop threads like
they do.

Reviewed by:	kib, jhb (prior version)
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D15469
2018-12-04 00:15:47 +00:00
..
2018-12-02 19:36:20 +00:00
2018-11-27 00:36:35 +00:00
2018-12-01 20:31:49 +00:00
2018-10-20 20:45:49 +00:00
2018-12-03 20:54:17 +00:00
2018-10-20 22:39:35 +00:00
2018-11-22 20:49:41 +00:00
2018-11-30 22:44:33 +00:00
2018-07-15 00:31:17 +00:00
2018-11-21 00:21:58 +00:00