summaryrefslogtreecommitdiff
path: root/arch/nds32/include/uapi/asm/unistd.h
diff options
context:
space:
mode:
authorVincent Chen <vincentc@andestech.com>2019-05-20 04:21:12 +0300
committerGreentime Hu <greentime@andestech.com>2019-05-31 10:23:26 +0300
commited32949e0acb73e7bc054bb02e0453d4d561ceda (patch)
treef582241cdd3450e01fe6d1cf508a3e3a8211c675 /arch/nds32/include/uapi/asm/unistd.h
parent8183db10db6377ac58ad048a4c827425a614695c (diff)
downloadlinux-ed32949e0acb73e7bc054bb02e0453d4d561ceda.tar.xz
nds32: Avoid IEX status being incorrectly modified
In order for kernel to capture each denormalized output, the UDF trapping enable bit is always raised in $fpcsr. Because underflow case will issue not an underflow exception but also an inexact exception, it causes that the IEX, IEX cumulative exception, flag in $fpcsr to be raised in each denormalized output handling. To make the emulation transparent to the user, the emulator needs to clear the IEX flag in $fpcsr if the result is a denormalized number. However, if the IEX flag has been raised before this floating point emulation, this cleanup may be incorrect. To avoid the IEX flags in $fpcsr be raised in each denormalized output handling, the IEX trap shall be always enabled. Signed-off-by: Vincent Chen <vincentc@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32/include/uapi/asm/unistd.h')
-rw-r--r--arch/nds32/include/uapi/asm/unistd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/nds32/include/uapi/asm/unistd.h b/arch/nds32/include/uapi/asm/unistd.h
index c691735017ed..a0b2f7b9c0f2 100644
--- a/arch/nds32/include/uapi/asm/unistd.h
+++ b/arch/nds32/include/uapi/asm/unistd.h
@@ -11,6 +11,6 @@
/* Additional NDS32 specific syscalls. */
#define __NR_cacheflush (__NR_arch_specific_syscall)
-#define __NR_udftrap (__NR_arch_specific_syscall + 1)
+#define __NR_fp_udfiex_crtl (__NR_arch_specific_syscall + 1)
__SYSCALL(__NR_cacheflush, sys_cacheflush)
-__SYSCALL(__NR_udftrap, sys_udftrap)
+__SYSCALL(__NR_fp_udfiex_crtl, sys_fp_udfiex_crtl)