freebsd-dev/sys/powerpc/include
John Baldwin c6a37e8413 Divorce critical sections from spinlocks. Critical sections as denoted by
critical_enter() and critical_exit() are now solely a mechanism for
deferring kernel preemptions.  They no longer have any affect on
interrupts.  This means that standalone critical sections are now very
cheap as they are simply unlocked integer increments and decrements for the
common case.

Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter()
and spinlock_exit().  This KPI is responsible for providing whatever MD
guarantees are needed to ensure that a thread holding a spin lock won't
be preempted by any other code that will try to lock the same lock.  For
now all archs continue to block interrupts in a "spinlock section" as they
did formerly in all critical sections.  Note that I've also taken this
opportunity to push a few things into MD code rather than MI.  For example,
critical_fork_exit() no longer exists.  Instead, MD code ensures that new
threads have the correct state when they are created.  Also, we no longer
try to fixup the idlethreads for APs in MI code.  Instead, each arch sets
the initial curthread and adjusts the state of the idle thread it borrows
in order to perform the initial context switch.

This change is largely a big NOP, but the cleaner separation it provides
will allow for more efficient alternative locking schemes in other parts
of the kernel (bare critical sections rather than per-CPU spin mutexes
for per-CPU data for example).

Reviewed by:	grehan, cognet, arch@, others
Tested on:	i386, alpha, sparc64, powerpc, arm, possibly more
2005-04-04 21:53:56 +00:00
..
_inttypes.h
_limits.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
_stdint.h <stdint.h> should define WINT_M{AX,IN} independent from whether WCHAR_MIN is 2004-05-18 16:04:57 +00:00
_types.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
asm.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
atomic.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
bat.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
bootinfo.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
bus_dma.h Refactor the bus_dma header files so that the interface is described in 2005-03-14 16:46:28 +00:00
bus_memio.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
bus_pio.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
bus.h Refactor the bus_dma header files so that the interface is described in 2005-03-14 16:46:28 +00:00
clock.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
cpu.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
cpufunc.h Always isync after a mtmsr. While perhaps not strictly necessary for PSL_EE 2004-08-07 00:20:00 +00:00
db_machdep.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
elf.h Implement TLS relocations for powerpc. 2004-11-02 09:47:01 +00:00
endian.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
exec.h Use a common multi-inclusion protection, and add such a 2005-02-19 21:16:48 +00:00
float.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
floatingpoint.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
fpu.h
frame.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
hid.h HID0 updates: 2005-02-04 01:14:38 +00:00
ieee.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
ieeefp.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
in_cksum.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
interruptvar.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
intr_machdep.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
intr.h
ipl.h
kdb.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
limits.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
md_var.h Further cleanup <machine/cpu.h> and <machine/md_var.h>: move the MI 2003-08-16 16:57:57 +00:00
memdev.h Add /dev/mem and /dev/kmem to powerpc. 2004-08-16 13:07:40 +00:00
metadata.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
mutex.h
nexusvar.h Remove hard-coded knowledge of specific OFW devices. Use bus_generic_probe 2004-01-13 11:20:52 +00:00
ofw_machdep.h Add /dev/mem and /dev/kmem to powerpc. 2004-08-16 13:07:40 +00:00
openpicreg.h
openpicvar.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
param.h Remove UAREA_PAGES. 2004-11-20 02:29:50 +00:00
pcb.h Add prototype for KDB's makectx routine 2004-07-12 22:17:20 +00:00
pcpu.h Gratuitous namechange to avoid low-level association with ddb. 2004-07-12 22:18:02 +00:00
pio.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
pmap.h Add pmap locking to many of the functions. 2004-08-26 04:15:36 +00:00
powerpc.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
proc.h Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
profile.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
psl.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
pte.h
ptrace.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
reg.h Add comment explaining struct reg and struct fpreg must match the trapframe. 2004-07-29 13:39:27 +00:00
reloc.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
resource.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
runq.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
sc_machdep.h A syscons implementation using the 8-bit framebuffer set up by 2004-01-21 05:16:23 +00:00
setjmp.h
sf_buf.h MFamd64 2004-04-18 08:10:04 +00:00
sigframe.h
signal.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
smp.h
spr.h - add definitions for MPC7447A/7448 (i.e. miniMac) 2005-02-04 01:17:04 +00:00
sr.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
stdarg.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
trap.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
ucontext.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
varargs.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
vmparam.h Increase kernel VA from 256Mb to 512Mb by shifting the segment used 2004-03-02 06:49:21 +00:00