freebsd-skq/sys/sparc64/include
jhb 41cadaa11e 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
_types.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
asi.h
asm.h
asmacros.h
atomic.h
bus_common.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_private.h Retire BUS_DMAMAP_NSEGS for sparc64 2004-06-28 04:04:43 +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
cache.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
ccr.h
clock.h
cpu.h Instead of calling ia32_pause() conditionally on __i386__ or __amd64__ 2004-08-03 18:44:27 +00:00
cpufunc.h
db_machdep.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
eeprom.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
elf.h
endian.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
exec.h
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
fp.h
frame.h Remove obsolete prototype of kdb_trap(). 2004-07-10 23:05:38 +00:00
fsr.h
gdb_machdep.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
idprom.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +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
instr.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
intr_machdep.h
iommureg.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
iommuvar.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
kdb.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
kerneldump.h
ktr.h
limits.h Addendum to netchild's C compiler abstraction mega-patch which somehow 2005-03-04 21:26:07 +00:00
lsu.h
md_var.h Add a small API to manage the MD user trap structures. Specifically, we 2005-01-19 18:24:07 +00:00
memdev.h Break out the MI part of the /dev/[k]mem and /dev/io drivers into 2004-08-01 11:40:54 +00:00
metadata.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
mutex.h
nexusvar.h
ofw_bus.h Instead of "OpenFirmware", "openfirmware", etc. use the official spelling 2004-08-16 15:45:27 +00:00
ofw_machdep.h - Re-write OF_decode_addr() with a bus-neutral approach, adding support 2005-02-12 19:13:51 +00:00
ofw_mem.h
ofw_nexus.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
ofw_upa.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 Implement makectx(). The makectx() function is used by KDB to create 2004-07-10 19:56:00 +00:00
pcpu.h
pmap.h Silence witness warnings about duplicate pmap lock emitted since 2005-02-18 15:37:34 +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
pstate.h
ptrace.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
reg.h
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
setjmp.h
sf_buf.h
sigframe.h
signal.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
smp.h Declare as volatile the memory location referenced by a pointer rather than 2005-03-06 20:57:08 +00:00
stdarg.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
sysarch.h
tick.h
tlb.h
trap.h
tsb.h
tstate.h
tte.h
ucontext.h
upa.h
utrap.h
varargs.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
ver.h Identify USIIIi processors. 2004-12-24 16:21:46 +00:00
vmparam.h
watch.h
wstate.h