From f85321667ca06b8424724dbaa17f88a55144c74e Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Sun, 21 Oct 2001 14:00:59 +0000 Subject: Add ia64_set_fpsr(). --- sys/ia64/include/ia64_cpu.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys') 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 @@ -246,6 +246,15 @@ ia64_get_psr(void) return result; } +/* + * 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. */ -- cgit v1.3