diff options
author | dfr <dfr@FreeBSD.org> | 2001-10-21 14:00:59 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2001-10-21 14:00:59 +0000 |
commit | 0e3e05fd5dc2193f668aaeb8df51a1f240ead454 (patch) | |
tree | 144fbdd46ce39e8b7d9997518570c46b65412ecd /sys/ia64/include | |
parent | 3a9c8cf20b774971ae7a97d3a1d404d04460d399 (diff) | |
download | FreeBSD-src-0e3e05fd5dc2193f668aaeb8df51a1f240ead454.zip FreeBSD-src-0e3e05fd5dc2193f668aaeb8df51a1f240ead454.tar.gz |
Add ia64_set_fpsr().
Diffstat (limited to 'sys/ia64/include')
-rw-r--r-- | sys/ia64/include/ia64_cpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/ia64/include/ia64_cpu.h b/sys/ia64/include/ia64_cpu.h index 2fba3d1..9e0b573 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 |