c6a37e8413
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
66 lines
2.0 KiB
Plaintext
66 lines
2.0 KiB
Plaintext
# $FreeBSD$
|
|
arm/arm/autoconf.c standard
|
|
arm/arm/bcopy_page.S standard
|
|
arm/arm/bcopyinout.S standard
|
|
arm/arm/blockio.S standard
|
|
arm/arm/bootconfig.c standard
|
|
arm/arm/bus_space_asm_generic.S standard
|
|
arm/arm/busdma_machdep.c standard
|
|
arm/arm/copystr.S standard
|
|
arm/arm/cpufunc.c standard
|
|
arm/arm/cpufunc_asm.S standard
|
|
arm/arm/cpufunc_asm_sa1.S standard
|
|
arm/arm/cpufunc_asm_armv4.S standard
|
|
arm/arm/cpufunc_asm_sa11x0.S standard
|
|
arm/arm/db_disasm.c optional ddb
|
|
arm/arm/db_interface.c optional ddb
|
|
arm/arm/db_trace.c optional ddb
|
|
arm/arm/disassem.c standard
|
|
arm/arm/dump_machdep.c standard
|
|
arm/arm/elf_machdep.c standard
|
|
arm/arm/exception.S standard
|
|
arm/arm/fiq.c standard
|
|
arm/arm/fiq_subr.S standard
|
|
arm/arm/fusu.S standard
|
|
arm/arm/identcpu.c standard
|
|
arm/arm/in_cksum.c standard
|
|
arm/arm/in_cksum_arm.S standard
|
|
arm/arm/intr.c standard
|
|
arm/arm/locore.S standard no-obj
|
|
arm/arm/machdep.c standard
|
|
arm/arm/mem.c optional mem
|
|
arm/arm/nexus.c optional nexus
|
|
arm/arm/nexus_io.c optional nexus
|
|
arm/arm/nexus_io_asm.S optional nexus
|
|
arm/arm/pmap.c standard
|
|
arm/arm/setcpsr.S standard
|
|
arm/arm/setstack.s standard
|
|
arm/arm/support.S standard
|
|
arm/arm/swtch.S standard
|
|
arm/arm/sys_machdep.c standard
|
|
arm/arm/trap.c standard
|
|
arm/arm/uio_machdep.c standard
|
|
arm/arm/undefined.c standard
|
|
arm/arm/vectors.S standard
|
|
arm/arm/vm_machdep.c standard
|
|
arm/fpe-arm/armfpe_glue.S optional armfpe
|
|
arm/fpe-arm/armfpe_init.c optional armfpe
|
|
arm/fpe-arm/armfpe.S optional armfpe
|
|
libkern/arm/divsi3.S standard
|
|
libkern/arm/ffs.S standard
|
|
libkern/arm/muldi3.c standard
|
|
libkern/ashldi3.c standard
|
|
libkern/ashrdi3.c standard
|
|
libkern/bcmp.c standard
|
|
libkern/divdi3.c standard
|
|
libkern/ffsl.c standard
|
|
libkern/flsl.c standard
|
|
libkern/lshrdi3.c standard
|
|
libkern/moddi3.c standard
|
|
libkern/qdivrem.c standard
|
|
libkern/udivdi3.c standard
|
|
libkern/umoddi3.c standard
|
|
#XXX: We can't use these versions, as strcmp.c is included conf/files
|
|
#libkern/arm/strcmp.S standard
|
|
#libkern/arm/strncmp.S standard
|