summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-03-27 06:50:34 +0000
committerjake <jake@FreeBSD.org>2002-03-27 06:50:34 +0000
commit5971322f85efbf997c3639930b1c7a902fbf8fdb (patch)
tree5aa4b4252d21c812caff55626e3446f9c335f7aa /sys/sparc64
parentf9cd124ed43680b01b607db59be0f17c09c89d06 (diff)
downloadFreeBSD-src-5971322f85efbf997c3639930b1c7a902fbf8fdb.zip
FreeBSD-src-5971322f85efbf997c3639930b1c7a902fbf8fdb.tar.gz
Fix style bugs.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/critical.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/sparc64/sparc64/critical.c b/sys/sparc64/sparc64/critical.c
index f708ce0..a50a01b 100644
--- a/sys/sparc64/sparc64/critical.c
+++ b/sys/sparc64/sparc64/critical.c
@@ -22,9 +22,10 @@
void
cpu_critical_enter(void)
{
+ struct thread *td;
critical_t pil;
- struct thread *td = curthread;
+ td = curthread;
pil = rdpr(pil);
wrpr(pil, 0, 14);
td->td_md.md_savecrit = pil;
@@ -33,7 +34,9 @@ cpu_critical_enter(void)
void
cpu_critical_exit(void)
{
- struct thread *td = curthread;
+ struct thread *td;
+
+ td = curthread;
wrpr(pil, td->td_md.md_savecrit, 0);
}
@@ -43,8 +46,9 @@ cpu_critical_exit(void)
void
cpu_critical_fork_exit(void)
{
- struct thread *td = curthread;
+ struct thread *td;
+ td = curthread;
td->td_critnest = 1;
td->td_md.md_savecrit = 0;
}
@@ -55,6 +59,7 @@ cpu_critical_fork_exit(void)
void
cpu_thread_link(struct thread *td)
{
+
td->td_md.md_savecrit = 0;
}
OpenPOWER on IntegriCloud