]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
locore.s:
authorbde <bde@FreeBSD.org>
Sun, 30 Oct 1994 20:09:13 +0000 (20:09 +0000)
committerbde <bde@FreeBSD.org>
Sun, 30 Oct 1994 20:09:13 +0000 (20:09 +0000)
commit494685ff9674e6193b1e02d5980e81eb66ce5cab
treef6e5d46ef2d6ed178eb6a35dc26d12fd4725581e
parent3e6ff289b35464b7bdf13875f1ea2df57bfb2ceb
locore.s:
Build a dummy frame at the top of tmpstk to help debuggers trace the stack
when the system is idle.

swtch.s: idle():
Initialize the frame pointer so that debuggers don't try to trace a bogus
stack.

Load the frame pointer, load the stack pointer and switch out the old
stack in the unique order that never leaves one of the pointers pointers
invalid so that debuggers can trace idle().  Disabling interrupts
provides sufficient validity for normal operation, but debuggers use
(trace) traps.
sys/amd64/amd64/cpu_switch.S
sys/amd64/amd64/locore.S
sys/amd64/amd64/locore.s
sys/amd64/amd64/swtch.s
sys/i386/i386/locore.s
sys/i386/i386/swtch.s