summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-28 02:54:44 +0000
committerobrien <obrien@FreeBSD.org>2002-03-28 02:54:44 +0000
commit2b3966937742f46b99db6f20f58acc595b080d83 (patch)
treecddf736f21b3e131f74ced75c3011c530ccaf09a /sys/ia64
parent892e01faba0cd32c5768c1515e6ef167aacfa135 (diff)
downloadFreeBSD-src-2b3966937742f46b99db6f20f58acc595b080d83.zip
FreeBSD-src-2b3966937742f46b99db6f20f58acc595b080d83.tar.gz
style(9)
Approved by: jake
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/critical.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/ia64/ia64/critical.c b/sys/ia64/ia64/critical.c
index 77a6c83..1698c03 100644
--- a/sys/ia64/ia64/critical.c
+++ b/sys/ia64/ia64/critical.c
@@ -22,16 +22,18 @@
void
cpu_critical_enter(void)
{
- struct thread *td = curthread;
+ struct thread *td;
+ td = curthread;
td->td_md.md_savecrit = intr_disable();
}
void
cpu_critical_exit(void)
{
- struct thread *td = curthread;
+ struct thread *td;
+ td = curthread;
intr_restore(td->td_md.md_savecrit);
}
@@ -41,8 +43,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 = (ia64_get_psr() | IA64_PSR_I);
}
@@ -53,6 +56,6 @@ cpu_critical_fork_exit(void)
void
cpu_thread_link(struct thread *td)
{
+
td->td_md.md_savecrit = 0;
}
-
OpenPOWER on IntegriCloud