diff options
author | Helge Deller <deller@gmx.de> | 2013-05-05 18:08:22 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-05-24 16:30:11 -0400 |
commit | 70ef5578dd8011eeafa999a18194d9b548a4d889 (patch) | |
tree | 9d6c403711e784ccca4a38761435424e44c27306 | |
parent | 17fdfd0851617b6c18c0913364caf2a54171ce85 (diff) |
MPILIB: disable usage of floating point registers on parisc
The umul_ppmm() macro for parisc uses the xmpyu assembler statement
which does calculation via a floating point register.
But usage of floating point registers inside the Linux kernel are not
allowed and gcc will stop compilation due to the -mdisable-fpregs
compiler option.
Fix this by disabling the umul_ppmm() and udiv_qrnnd() macros. The
mpilib will then use the generic built-in implementations instead.
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | lib/mpi/longlong.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h index 095ab157a521..d411355f238e 100644 --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h | |||
@@ -318,7 +318,8 @@ extern UDItype __udiv_qrnnd(); | |||
318 | "rM" ((USItype)(bh)), \ | 318 | "rM" ((USItype)(bh)), \ |
319 | "rM" ((USItype)(al)), \ | 319 | "rM" ((USItype)(al)), \ |
320 | "rM" ((USItype)(bl))) | 320 | "rM" ((USItype)(bl))) |
321 | #if defined(_PA_RISC1_1) | 321 | #if 0 && defined(_PA_RISC1_1) |
322 | /* xmpyu uses floating point register which is not allowed in Linux kernel. */ | ||
322 | #define umul_ppmm(wh, wl, u, v) \ | 323 | #define umul_ppmm(wh, wl, u, v) \ |
323 | do { \ | 324 | do { \ |
324 | union {UDItype __ll; \ | 325 | union {UDItype __ll; \ |
@@ -337,7 +338,7 @@ do { \ | |||
337 | #define UMUL_TIME 40 | 338 | #define UMUL_TIME 40 |
338 | #define UDIV_TIME 80 | 339 | #define UDIV_TIME 80 |
339 | #endif | 340 | #endif |
340 | #ifndef LONGLONG_STANDALONE | 341 | #if 0 /* #ifndef LONGLONG_STANDALONE */ |
341 | #define udiv_qrnnd(q, r, n1, n0, d) \ | 342 | #define udiv_qrnnd(q, r, n1, n0, d) \ |
342 | do { USItype __r; \ | 343 | do { USItype __r; \ |
343 | (q) = __udiv_qrnnd(&__r, (n1), (n0), (d)); \ | 344 | (q) = __udiv_qrnnd(&__r, (n1), (n0), (d)); \ |