aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-08-04 20:32:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-08-04 20:32:45 +0000
commit3bdbd658f1d25f99bac2d4033c1556afc46403b0 (patch)
treefd4fd8a4bc6d0874da5819255d7a16d649642bbc /sys
parent139b7550d98ddfe74a9e69e9d7bc0645f4acafea (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/critical.c12
-rw-r--r--sys/alpha/include/critical.h2
-rw-r--r--sys/amd64/amd64/critical.c11
-rw-r--r--sys/amd64/include/critical.h2
-rw-r--r--sys/ia64/ia64/critical.c11
-rw-r--r--sys/ia64/include/critical.h2
-rw-r--r--sys/powerpc/include/critical.h2
-rw-r--r--sys/powerpc/powerpc/critical.c11
-rw-r--r--sys/sparc64/include/critical.h2
-rw-r--r--sys/sparc64/sparc64/critical.c11
10 files changed, 0 insertions, 66 deletions
diff --git a/sys/alpha/alpha/critical.c b/sys/alpha/alpha/critical.c
index 9995cf09a2edc..ba436c3c706ab 100644
--- a/sys/alpha/alpha/critical.c
+++ b/sys/alpha/alpha/critical.c
@@ -31,17 +31,5 @@ cpu_critical_fork_exit(void)
struct thread *td;
td = curthread;
- td->td_critnest = 1;
td->td_md.md_savecrit = ALPHA_PSL_IPL_0;
}
-
-/*
- * cpu_thread_link() - thread linkup, initialize machine-dependant fields
- */
-void
-cpu_thread_link(struct thread *td)
-{
-
- td->td_md.md_savecrit = 0;
-}
-
diff --git a/sys/alpha/include/critical.h b/sys/alpha/include/critical.h
index dc5119ce47d75..3f13156a94cee 100644
--- a/sys/alpha/include/critical.h
+++ b/sys/alpha/include/critical.h
@@ -8,7 +8,6 @@
* cpu_critical_enter() - inlined
* cpu_critical_exit() - inlined
* cpu_critical_fork_exit() - prototyped
- * cpu_thread_link() - prototyped
* related support functions residing
* in <arch>/<arch>/critical.c - prototyped
*
@@ -24,7 +23,6 @@ __BEGIN_DECLS
* Prototypes - see <arch>/<arch>/critical.c
*/
void cpu_critical_fork_exit(void);
-void cpu_thread_link(struct thread *td);
#ifdef __GNUC__
diff --git a/sys/amd64/amd64/critical.c b/sys/amd64/amd64/critical.c
index b667c8aad2a21..46d2e9d960b4f 100644
--- a/sys/amd64/amd64/critical.c
+++ b/sys/amd64/amd64/critical.c
@@ -28,16 +28,5 @@ cpu_critical_fork_exit(void)
struct thread *td;
td = curthread;
- td->td_critnest = 1;
td->td_md.md_savecrit = read_rflags() | PSL_I;
}
-
-/*
- * cpu_thread_link() - thread linkup, initialize machine-dependant fields
- */
-void
-cpu_thread_link(struct thread *td)
-{
-
- td->td_md.md_savecrit = 0;
-}
diff --git a/sys/amd64/include/critical.h b/sys/amd64/include/critical.h
index dc5119ce47d75..3f13156a94cee 100644
--- a/sys/amd64/include/critical.h
+++ b/sys/amd64/include/critical.h
@@ -8,7 +8,6 @@
* cpu_critical_enter() - inlined
* cpu_critical_exit() - inlined
* cpu_critical_fork_exit() - prototyped
- * cpu_thread_link() - prototyped
* related support functions residing
* in <arch>/<arch>/critical.c - prototyped
*
@@ -24,7 +23,6 @@ __BEGIN_DECLS
* Prototypes - see <arch>/<arch>/critical.c
*/
void cpu_critical_fork_exit(void);
-void cpu_thread_link(struct thread *td);
#ifdef __GNUC__
diff --git a/sys/ia64/ia64/critical.c b/sys/ia64/ia64/critical.c
index 5272b803883d7..3704d9e5276d9 100644
--- a/sys/ia64/ia64/critical.c
+++ b/sys/ia64/ia64/critical.c
@@ -29,16 +29,5 @@ cpu_critical_fork_exit(void)
struct thread *td;
td = curthread;
- td->td_critnest = 1;
td->td_md.md_savecrit = (ia64_get_psr() | IA64_PSR_I);
}
-
-/*
- * cpu_thread_link() - thread linkup, initialize machine-dependant fields
- */
-void
-cpu_thread_link(struct thread *td)
-{
-
- td->td_md.md_savecrit = 0;
-}
diff --git a/sys/ia64/include/critical.h b/sys/ia64/include/critical.h
index 265edabccf446..4f6969d120f58 100644
--- a/sys/ia64/include/critical.h
+++ b/sys/ia64/include/critical.h
@@ -8,7 +8,6 @@
* cpu_critical_enter() - inlined
* cpu_critical_exit() - inlined
* cpu_critical_fork_exit() - prototyped
- * cpu_thread_link() - prototyped
* related support functions residing
* in <arch>/<arch>/critical.c - prototyped
*
@@ -24,7 +23,6 @@ __BEGIN_DECLS
* Prototypes - see <arch>/<arch>/critical.c
*/
void cpu_critical_fork_exit(void);
-void cpu_thread_link(struct thread *td);
#ifdef __GNUC__
diff --git a/sys/powerpc/include/critical.h b/sys/powerpc/include/critical.h
index ce85c67a6d1b6..b1bb077d9927a 100644
--- a/sys/powerpc/include/critical.h
+++ b/sys/powerpc/include/critical.h
@@ -8,7 +8,6 @@
* cpu_critical_enter() - inlined
* cpu_critical_exit() - inlined
* cpu_critical_fork_exit() - prototyped
- * cpu_thread_link() - prototyped
* related support functions residing
* in <arch>/<arch>/critical.c - prototyped
*
@@ -24,7 +23,6 @@ __BEGIN_DECLS
* Prototypes - see <arch>/<arch>/critical.c
*/
void cpu_critical_fork_exit(void);
-void cpu_thread_link(struct thread *td);
#ifdef __GNUC__
diff --git a/sys/powerpc/powerpc/critical.c b/sys/powerpc/powerpc/critical.c
index 873498cd76244..f00366989f3d1 100644
--- a/sys/powerpc/powerpc/critical.c
+++ b/sys/powerpc/powerpc/critical.c
@@ -27,16 +27,5 @@ cpu_critical_fork_exit(void)
{
struct thread *td = curthread;
- td->td_critnest = 1;
td->td_md.md_savecrit = (mfmsr() | PSL_EE | PSL_RI);
}
-
-/*
- * cpu_thread_link() - thread linkup, initialize machine-dependant fields
- */
-void
-cpu_thread_link(struct thread *td)
-{
- td->td_md.md_savecrit = 0;
-}
-
diff --git a/sys/sparc64/include/critical.h b/sys/sparc64/include/critical.h
index eee9914adc12e..13e783cec3667 100644
--- a/sys/sparc64/include/critical.h
+++ b/sys/sparc64/include/critical.h
@@ -8,7 +8,6 @@
* cpu_critical_enter() - inlined
* cpu_critical_exit() - inlined
* cpu_critical_fork_exit() - prototyped
- * cpu_thread_link() - prototyped
* related support functions residing
* in <arch>/<arch>/critical.c - prototyped
*
@@ -24,7 +23,6 @@ __BEGIN_DECLS
* Prototypes - see <arch>/<arch>/critical.c
*/
void cpu_critical_fork_exit(void);
-void cpu_thread_link(struct thread *td);
#ifdef __GNUC__
diff --git a/sys/sparc64/sparc64/critical.c b/sys/sparc64/sparc64/critical.c
index cd5f0140d49e6..fdc9424a6a882 100644
--- a/sys/sparc64/sparc64/critical.c
+++ b/sys/sparc64/sparc64/critical.c
@@ -29,16 +29,5 @@ cpu_critical_fork_exit(void)
struct thread *td;
td = curthread;
- td->td_critnest = 1;
- td->td_md.md_savecrit = 0;
-}
-
-/*
- * cpu_thread_link() - thread linkup, initialize machine-dependant fields
- */
-void
-cpu_thread_link(struct thread *td)
-{
-
td->td_md.md_savecrit = 0;
}