aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
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