aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2002-03-27 05:39:23 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2002-03-27 05:39:23 +0000
commitd74ac6819b2cc8e5c18a099a97ffc16616b4e94d (patch)
tree8233f61cf29e01829b91c6a5cf27defe60e6b8d8 /sys/alpha/include
parent50a565560242eb8b86d01bb62036d501aa4fa52b (diff)
Notes
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/cpufunc.h18
-rw-r--r--sys/alpha/include/proc.h1
2 files changed, 6 insertions, 13 deletions
diff --git a/sys/alpha/include/cpufunc.h b/sys/alpha/include/cpufunc.h
index 577cb5fb6a58..95d7e1030b7e 100644
--- a/sys/alpha/include/cpufunc.h
+++ b/sys/alpha/include/cpufunc.h
@@ -35,7 +35,7 @@
#include <machine/chipset.h>
#include <machine/alpha_cpu.h>
-#define CRITICAL_FORK (ALPHA_PSL_IPL_0)
+struct thread;
#ifdef __GNUC__
@@ -47,18 +47,6 @@ breakpoint(void)
#endif
-static __inline critical_t
-cpu_critical_enter(void)
-{
- return (alpha_pal_swpipl(ALPHA_PSL_IPL_MCES));
-}
-
-static __inline void
-cpu_critical_exit(critical_t ipl)
-{
- alpha_pal_swpipl(ipl);
-}
-
static __inline register_t
intr_disable(void)
{
@@ -71,6 +59,10 @@ intr_restore(register_t ipl)
alpha_pal_swpipl(ipl);
}
+void cpu_critical_enter(void);
+void cpu_critical_exit(void);
+void cpu_critical_fork_exit(void);
+void cpu_thread_link(struct thread *td);
#endif /* _KERNEL */
diff --git a/sys/alpha/include/proc.h b/sys/alpha/include/proc.h
index eb1772a1128a..b0689f9fdaf4 100644
--- a/sys/alpha/include/proc.h
+++ b/sys/alpha/include/proc.h
@@ -47,6 +47,7 @@ struct mdthread {
u_int64_t md_hae; /* user HAE register value */
void *osf_sigtramp; /* user-level signal trampoline */
u_int md_kernnest; /* nesting level in the kernel */
+ register_t md_savecrit; /* save PSL for critical section */
};
#define MDP_FPUSED 0x0001 /* Process used the FPU */