freebsd-skq/sys/alpha/include
bmilekic f364d4ac36 Change and clean the mutex lock interface.
mtx_enter(lock, type) becomes:

mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks)
mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized)

similarily, for releasing a lock, we now have:

mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN.
We change the caller interface for the two different types of locks
because the semantics are entirely different for each case, and this
makes it explicitly clear and, at the same time, it rids us of the
extra `type' argument.

The enter->lock and exit->unlock change has been made with the idea
that we're "locking data" and not "entering locked code" in mind.

Further, remove all additional "flags" previously passed to the
lock acquire/release routines with the exception of two:

MTX_QUIET and MTX_NOSWITCH

The functionality of these flags is preserved and they can be passed
to the lock/unlock routines by calling the corresponding wrappers:

mtx_{lock, unlock}_flags(lock, flag(s)) and
mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN
locks, respectively.

Re-inline some lock acq/rel code; in the sleep lock case, we only
inline the _obtain_lock()s in order to ensure that the inlined code
fits into a cache line. In the spin lock case, we inline recursion and
actually only perform a function call if we need to spin. This change
has been made with the idea that we generally tend to avoid spin locks
and that also the spin locks that we do have and are heavily used
(i.e. sched_lock) do recurse, and therefore in an effort to reduce
function call overhead for some architectures (such as alpha), we
inline recursion for this case.

Create a new malloc type for the witness code and retire from using
the M_DEV type. The new type is called M_WITNESS and is only declared
if WITNESS is enabled.

Begin cleaning up some machdep/mutex.h code - specifically updated the
"optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN
and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently
need those.

Finally, caught up to the interface changes in all sys code.

Contributors: jake, jhb, jasone (in no particular order)
2001-02-09 06:11:45 +00:00
..
pc
_limits.h Move all VCS ids to a consistent location. 2000-12-28 18:21:32 +00:00
alpha_cpu.h
ansi.h Put VCS ids in a consistent place and form. 2001-01-08 06:24:08 +00:00
asm.h Fix problems booting large kernels on alphas. The symptom is that the kernel 2000-10-16 20:15:43 +00:00
atomic.h Only use 1 set of memory barrier operations with the atomic_*_{acq,rel}_ptr 2000-10-25 00:15:21 +00:00
bootinfo.h
bus_memio.h
bus_pio.h
bus.h The alpha architecture is 64 bits, so bus_addr_t && bus_size_t should really 2001-01-09 18:17:48 +00:00
bwx.h * Completely rewrite the alpha busspace to hide the implementation from 2000-08-28 21:48:13 +00:00
chipset.h * Completely rewrite the alpha busspace to hide the implementation from 2000-08-28 21:48:13 +00:00
clock.h Move DELAY() from <machine/clock.h> to <sys/systm.h> 2000-10-15 09:51:49 +00:00
clockvar.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
cpu.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
cpuconf.h Next phase in the PCI subsystem cleanup. 2000-12-08 22:11:23 +00:00
cpufunc.h Major update to the way synchronization is done in the kernel. Highlights 2000-09-07 01:33:02 +00:00
db_machdep.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
elf.h
endian.h
exec.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
float.h
floatingpoint.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
fpu.h
frame.h * Move exception_return to exception.s which is a more logical home for it. 2001-02-02 10:20:30 +00:00
globaldata.h - Rename the gd_cpuno member of struct globaldata to gd_cpuid. 2001-01-24 10:24:49 +00:00
globals.h - Remove compatibility macros for accessing per-cpu variables. 2001-01-11 14:46:26 +00:00
ieee.h
ieeefp.h Finish moving all IEEE fp types to be the same on all arch's. 2000-05-10 19:41:40 +00:00
in_cksum.h Make in_cksum() a macro call to in_cksum_skip(), since it provides the 2000-05-06 18:18:32 +00:00
inst.h
intr.h - Modify alpha_setup_intr() to take interrupt handler flags as an additional 2000-11-01 18:40:02 +00:00
intrcnt.h
ioctl_bt848.h Merge from i386: Add MSP ioctl 2000-10-27 07:07:24 +00:00
ioctl_fd.h
ioctl_meteor.h Add include files to alpha/include directory. 2000-04-15 08:07:56 +00:00
ipl.h Wrap the IPI definitions and function prototypes in #ifdef SMP. 2001-01-24 10:25:09 +00:00
limits.h Move all VCS ids to a consistent location. 2000-12-28 18:21:32 +00:00
lock.h Convert all simplelocks to mutexes and remove the simplelock implementations. 2001-01-24 12:35:55 +00:00
md_var.h Next phase in the PCI subsystem cleanup. 2000-12-08 22:11:23 +00:00
mutex.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
pal.h
param.h Fix CMSG and ALIGN macro usage. 2000-11-08 16:59:25 +00:00
pcb.h Major update to the way synchronization is done in the kernel. Highlights 2000-09-07 01:33:02 +00:00
pcpu.h - Rename the gd_cpuno member of struct globaldata to gd_cpuid. 2001-01-24 10:24:49 +00:00
pmap.h Move MAXCPU from machine/smp.h to machine/param.h to fix breakage 2000-09-23 12:18:06 +00:00
proc.h Major update to the way synchronization is done in the kernel. Highlights 2000-09-07 01:33:02 +00:00
profile.h
prom.h
psl.h
pte.h
ptrace.h
reg.h Remove offensive language. 2000-06-25 09:30:53 +00:00
reloc.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
resource.h
rpb.h Major update to the way synchronization is done in the kernel. Highlights 2000-09-07 01:33:02 +00:00
setjmp.h Work around a bug by adding struct tags. gcc-2.95 apparently gets the 2000-10-06 11:53:32 +00:00
sgmap.h
sigframe.h
signal.h Make MINSIGSTKSZ machine dependent, and have the sigaltstack 2000-11-09 08:25:48 +00:00
smp.h Catch up to moving headers: 2000-10-20 07:58:15 +00:00
stdarg.h
swiz.h * Completely rewrite the alpha busspace to hide the implementation from 2000-08-28 21:48:13 +00:00
sysarch.h
types.h - Remove the inthand2_t type and use the equivalent driver_intr_t type from 2000-09-13 18:33:25 +00:00
ucontext.h
varargs.h
vmparam.h Make sysv-style shared memory tuneable params fully runtime adjustable 2000-03-30 07:17:05 +00:00