freebsd-skq/sys/arm/sa11x0
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
..
assabet_machdep.c Fix for the panic("vm_thread_new: kstack allocation failed") and 2007-11-05 11:36:16 +00:00
files.sa11x0
sa11x0_dmacreg.h
sa11x0_gpioreg.h
sa11x0_io_asm.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
sa11x0_io.c Match bus space unmap prototype. 2006-11-20 13:21:02 +00:00
sa11x0_irq.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
sa11x0_irqhandler.c style(9) cleanup. 2006-10-21 04:25:00 +00:00
sa11x0_ost.c Remove unused header file <machine/katelib.h> 2007-02-26 05:17:47 +00:00
sa11x0_ostreg.h
sa11x0_ppcreg.h
sa11x0_reg.h Use pmap_devmap_bootstrap(), instead of mapping the SACOM1 registers 2006-05-23 12:14:14 +00:00
sa11x0_var.h Nuke sa11x0_attach_args. It's a NetBSDIsm, and we have no use for it. 2006-05-29 19:32:32 +00:00
sa11x0.c Wrap a BUS_SETUP_INTR() line at 80. 2007-03-06 10:56:54 +00:00
std.sa11x0 Big cleanup: get ride of the whole spl level logic, as FreeBSD doesn't use 2004-09-23 22:33:38 +00:00
uart_bus_sa1110.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
uart_cpu_sa1110.c Don't expose the uart_ops structure directly, but instead have 2007-04-02 22:00:22 +00:00
uart_dev_sa1110.c It's probably time I learn C. 2007-09-12 18:28:09 +00:00
uart_dev_sa1110.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00