summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/smp.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-01-08 05:37:52 +0000
committerjake <jake@FreeBSD.org>2002-01-08 05:37:52 +0000
commit68d3ae71f670012666fcc01a9e2162487e5e1134 (patch)
tree13f8121bafbdf0cc5c6ec7b343a85e162d085346 /sys/sparc64/include/smp.h
parentf4c697794d9da5ddefab5247da0f51c559a8dc15 (diff)
downloadFreeBSD-src-68d3ae71f670012666fcc01a9e2162487e5e1134.zip
FreeBSD-src-68d3ae71f670012666fcc01a9e2162487e5e1134.tar.gz
Setup the normal global pcb register as well on entry from user land.
Call critical_enter/critical_exit around (fast) interrupt handlers. All non-threaded interrupts are fast, and the threaded interrupt scheduler is itself a fast interrupt. Assert that an interrupt handler we are about to call is non-zero. Be paranoid about restoring the users global registers. Do it as the last thing before switching to alternate globals (when we magically get our preloaded registers back), and do it with interrupts disabled. Any kind of kernel trap when the globals are not setup properly is bad news. Don't save and restore the kernel g6, it invariably points to the current pcb now.
Diffstat (limited to 'sys/sparc64/include/smp.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud