Date: Sat, 23 Feb 2002 10:55:21 -0800 (PST) From: Jake Burkholder <jake@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sparc64/sparc64 exception.s Message-ID: <200202231855.g1NItLj66606@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jake 2002/02/23 10:55:21 PST
Modified files:
sys/sparc64/sparc64 exception.s
Log:
1. Setup the user stack pointer before returning to a user trap handler.
If we don't do this here there's a 1 instruction race where an interrupt
could come in and crash the user process due to having no stack.
2. Pass %fsr to the user trap handler in %l4. Since %fsr can only be loaded
from or stored to memory, we need to do some contortions and temporarily
save it to the alternate global stack.
3. Reload the pcb and pcpu registers for traps in kernel mode, for sanity.
Submitted by: tmm (1, 2)
Revision Changes Path
1.25 +32 -0 src/sys/sparc64/sparc64/exception.s
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202231855.g1NItLj66606>
