freebsd-dev/sys/pc98/pc98
Konstantin Belousov 89b57fcf01 Fix for the panic("vm_thread_new: kstack allocation failed") and
silent NULL pointer dereference in the i386 and sparc64 pmap_pinit()
when the kmem_alloc_nofault() failed to allocate address space. Both
functions now return error instead of panicing or dereferencing NULL.

As consequence, vmspace_exec() and vmspace_unshare() returns the errno
int. struct vmspace arg was added to vm_forkproc() to avoid dealing
with failed allocation when most of the fork1() job is already done.

The kernel stack for the thread is now set up in the thread_alloc(),
that itself may return NULL. Also, allocation of the first process
thread is performed in the fork1() to properly deal with stack
allocation failure. proc_linkup() is separated into proc_linkup()
called from fork1(), and proc_linkup0(), that is used to set up the
kernel process (was known as swapper).

In collaboration with:	Peter Holm
Reviewed by:	jhb
2007-11-05 11:36:16 +00:00
..
busio.s /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
busiosubr.c /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
canbepm.c
canbus_if.m /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
canbus.c Since DELAY() was moved, most <machine/clock.h> #includes have been 2006-05-16 14:37:58 +00:00
canbus.h
canbusvars.h
machdep.c Fix for the panic("vm_thread_new: kstack allocation failed") and 2007-11-05 11:36:16 +00:00
pc98_machdep.c Add pc98 specific code to adjust the firmware geometry when it differs 2006-08-09 18:25:07 +00:00
pc98_machdep.h - Move defines for PC-98 machine type from pc98/cbus/cbus.h into 2006-05-08 12:03:58 +00:00