aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2001-10-21 14:00:59 +0000
committerDoug Rabson <dfr@FreeBSD.org>2001-10-21 14:00:59 +0000
commitf85321667ca06b8424724dbaa17f88a55144c74e (patch)
tree144fbdd46ce39e8b7d9997518570c46b65412ecd /sys
parenta8142a86d9ed60e2cb2eab9144e427d8929a08fc (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/ia64/include/ia64_cpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/ia64/include/ia64_cpu.h b/sys/ia64/include/ia64_cpu.h
index 2fba3d19bdae..9e0b5730bdb8 100644
--- a/sys/ia64/include/ia64_cpu.h
+++ b/sys/ia64/include/ia64_cpu.h
@@ -247,6 +247,15 @@ ia64_get_psr(void)
}
/*
+ * Set the value of ar.fpsr
+ */
+static __inline void
+ia64_set_fpsr(u_int64_t v)
+{
+ __asm __volatile("mov ar.fpsr=%0" :: "r" (v));
+}
+
+/*
* Read the value of ar.k0.
*/
static __inline u_int64_t