]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for low resolution SMP kernel profiling.
authortegge <tegge@FreeBSD.org>
Mon, 15 Dec 1997 02:18:35 +0000 (02:18 +0000)
committertegge <tegge@FreeBSD.org>
Mon, 15 Dec 1997 02:18:35 +0000 (02:18 +0000)
commitba494eff3a511b2f5c5d9bbc02686772b9ed4de7
tree6d2e4d72fd7140f16dc511d497a2d2acfcae6f26
parentda6ab2349a36aff5f17c3d322976dace8fa64ac7
Add support for low resolution SMP kernel profiling.

  - A nonprofiling version of s_lock (called s_lock_np) is used
    by mcount.

  - When profiling is active, more registers are clobbered in
    seemingly simple assembly routines. This means that some
    callers needed to save/restore extra registers.

  - The stack pointer must have space for a 'fake' return address
    in idle, to avoid stack underflow.
17 files changed:
sys/amd64/amd64/cpu_switch.S
sys/amd64/amd64/mp_machdep.c
sys/amd64/amd64/mptable.c
sys/amd64/amd64/swtch.s
sys/amd64/include/mptable.h
sys/amd64/include/profile.h
sys/i386/i386/microtime.s
sys/i386/i386/mp_machdep.c
sys/i386/i386/mptable.c
sys/i386/i386/simplelock.s
sys/i386/i386/swtch.s
sys/i386/include/lock.h
sys/i386/include/mptable.h
sys/i386/include/profile.h
sys/i386/isa/apic_ipl.s
sys/i386/isa/ipl.s
sys/kern/subr_smp.c