summaryrefslogtreecommitdiffstats
path: root/arch/parisc/lib/libgcc/__umoddi3.c
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2007-10-18 00:06:26 -0700
committerKyle McMartin <kyle@shortfin.cabal.ca>2007-10-18 00:58:49 -0700
commitefb80e7e097d0888e59fbbe4ded2ac5a256f556d (patch)
tree98a0f2f1514501aeebb1877bfcb5b528491e5ad5 /arch/parisc/lib/libgcc/__umoddi3.c
parent6f7d998e94ec7b7f08bd0c72fc05343435d7fa93 (diff)
downloadop-kernel-dev-efb80e7e097d0888e59fbbe4ded2ac5a256f556d.zip
op-kernel-dev-efb80e7e097d0888e59fbbe4ded2ac5a256f556d.tar.gz
[PARISC] import necessary bits of libgcc.a
Currently we're hacking libs-y to include libgcc.a, but this has unforeseen consequences since the userspace libgcc is linked with fpregs enabled. We need the kernel to stop using fpregs in an uncontrolled manner to implement lazy fpu state saves. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/lib/libgcc/__umoddi3.c')
-rw-r--r--arch/parisc/lib/libgcc/__umoddi3.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/parisc/lib/libgcc/__umoddi3.c b/arch/parisc/lib/libgcc/__umoddi3.c
new file mode 100644
index 0000000..ac744e9
--- /dev/null
+++ b/arch/parisc/lib/libgcc/__umoddi3.c
@@ -0,0 +1,10 @@
+#include "libgcc.h"
+
+u64 __umoddi3(u64 num, u64 den)
+{
+ u64 v;
+
+ (void)__udivmoddi4(num, den, &v);
+ return v;
+}
+EXPORT_SYMBOL(__umoddi3);
OpenPOWER on IntegriCloud