提交 fa681a18 编写于 作者: R Randolph Chung 提交者: Kyle McMartin

[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: NRandolph Chung <tausq@parisc-linux.org>
Signed-off-by: NKyle McMartin <kyle@parisc-linux.org>
上级 7efe1611
...@@ -43,7 +43,7 @@ cflags-y += -mno-space-regs -mfast-indirect-calls ...@@ -43,7 +43,7 @@ cflags-y += -mno-space-regs -mfast-indirect-calls
# Currently we save and restore fpregs on all kernel entry/interruption paths. # Currently we save and restore fpregs on all kernel entry/interruption paths.
# If that gets optimized, we might need to disable the use of fpregs in the # If that gets optimized, we might need to disable the use of fpregs in the
# kernel. # kernel.
#cflags-y += -mdisable-fpregs cflags-y += -mdisable-fpregs
# Without this, "ld -r" results in .text sections that are too big # Without this, "ld -r" results in .text sections that are too big
# (> 0x40000) for branches to reach stubs. # (> 0x40000) for branches to reach stubs.
......
...@@ -339,6 +339,7 @@ unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len) ...@@ -339,6 +339,7 @@ unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len)
pds = (double *)pcs; pds = (double *)pcs;
pdd = (double *)pcd; pdd = (double *)pcd;
#if 0
/* Copy 8 doubles at a time */ /* Copy 8 doubles at a time */
while (len >= 8*sizeof(double)) { while (len >= 8*sizeof(double)) {
register double r1, r2, r3, r4, r5, r6, r7, r8; register double r1, r2, r3, r4, r5, r6, r7, r8;
...@@ -366,6 +367,7 @@ unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len) ...@@ -366,6 +367,7 @@ unsigned long pa_memcpy(void *dstp, const void *srcp, unsigned long len)
fstdma(d_space, r8, pdd, pmc_store_exc); fstdma(d_space, r8, pdd, pmc_store_exc);
len -= 8*sizeof(double); len -= 8*sizeof(double);
} }
#endif
pws = (unsigned int *)pds; pws = (unsigned int *)pds;
pwd = (unsigned int *)pdd; pwd = (unsigned int *)pdd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册