summaryrefslogtreecommitdiff
path: root/lib9/setfcr-Solaris-sparc.c
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2014-05-18 15:32:02 +0100
committerCharles Forsyth <charles.forsyth@gmail.com>2014-05-18 15:32:02 +0100
commitfc85c874b585778fe2eae90ab562103b7c8a7b6f (patch)
tree7968ae368c80e4840742922be86b0094e1135906 /lib9/setfcr-Solaris-sparc.c
parent1593ea8eb6909c227f2f9c244c279e5bbd29c87a (diff)
revert to 626 to undo unintended push
Diffstat (limited to 'lib9/setfcr-Solaris-sparc.c')
-rw-r--r--lib9/setfcr-Solaris-sparc.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/lib9/setfcr-Solaris-sparc.c b/lib9/setfcr-Solaris-sparc.c
deleted file mode 100644
index 405e9cf2..00000000
--- a/lib9/setfcr-Solaris-sparc.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* This code is a little awkward. If somebody who understands Solaris
- better would tell me an idiomatic way to invoke equivalent
- behavior, I'd be grateful. ehg@bell-labs.com */
-
-#include "lib9.h"
-
-ulong
-getfcr(void)
-{
- ulong v;
-
- asm(" st %fsr, [%fp-8]");
- return v;
-}
-
-void
-setfcr(ulong v)
-{
- ulong vv;
-
- vv = (getfcr() & ~FPFCR) | (v & FPFCR);
- asm(" ld [%fp-4], %fsr");
-}
-
-ulong
-getfsr(void)
-{
- ulong v;
-
- asm(" st %fsr, [%fp-8]");
- return v;
-}
-
-void
-setfsr(ulong v)
-{
- ulong vv;
-
- vv = (getfsr() & ~FPFSR) | (v & FPFSR);
- asm(" ld [%fp-4], %fsr");
-}
-