Commit fa681a1800a58234afe4d876c1752c0751826d22
Committed by
Kyle McMartin
1 parent
7efe1611b2
Exists in
master
and in
7 other branches
[PARISC] Disable use of fpregs in pa_memcpy
Disable use of fpregs in pa_memcpy, and turn on the -mdisable-fpregs flag. Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Showing 2 changed files with 3 additions and 1 deletions Side-by-side Diff
arch/parisc/Makefile
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | # Currently we save and restore fpregs on all kernel entry/interruption paths. |
44 | 44 | # If that gets optimized, we might need to disable the use of fpregs in the |
45 | 45 | # kernel. |
46 | -#cflags-y += -mdisable-fpregs | |
46 | +cflags-y += -mdisable-fpregs | |
47 | 47 | |
48 | 48 | # Without this, "ld -r" results in .text sections that are too big |
49 | 49 | # (> 0x40000) for branches to reach stubs. |
arch/parisc/lib/memcpy.c
... | ... | @@ -339,6 +339,7 @@ |
339 | 339 | pds = (double *)pcs; |
340 | 340 | pdd = (double *)pcd; |
341 | 341 | |
342 | +#if 0 | |
342 | 343 | /* Copy 8 doubles at a time */ |
343 | 344 | while (len >= 8*sizeof(double)) { |
344 | 345 | register double r1, r2, r3, r4, r5, r6, r7, r8; |
... | ... | @@ -366,6 +367,7 @@ |
366 | 367 | fstdma(d_space, r8, pdd, pmc_store_exc); |
367 | 368 | len -= 8*sizeof(double); |
368 | 369 | } |
370 | +#endif | |
369 | 371 | |
370 | 372 | pws = (unsigned int *)pds; |
371 | 373 | pwd = (unsigned int *)pdd; |