diff options
author | Vincent Chen <vincentc@andestech.com> | 2018-11-22 11:14:34 +0800 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2018-11-22 18:13:13 +0800 |
commit | e46bf83c1864a20f9dd17d597ec9be18ed05add8 (patch) | |
tree | b790f6d6935256140cb8e02d9a5dffd64ad74d14 /arch/nds32/include/uapi | |
parent | nds32: Remove duplicated include from pm.c (diff) | |
download | linux-dev-e46bf83c1864a20f9dd17d597ec9be18ed05add8.tar.xz linux-dev-e46bf83c1864a20f9dd17d597ec9be18ed05add8.zip |
nds32: nds32 FPU port
This patch set contains basic components for supporting the nds32 FPU,
such as exception handlers and context switch for FPU registers. By
default, the lazy FPU scheme is supported and the user can configure it via
CONFIG_LZAY_FPU.
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')
-rw-r--r-- | arch/nds32/include/uapi/asm/sigcontext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/nds32/include/uapi/asm/sigcontext.h b/arch/nds32/include/uapi/asm/sigcontext.h index 00567b237b0c..1257a78e3ae1 100644 --- a/arch/nds32/include/uapi/asm/sigcontext.h +++ b/arch/nds32/include/uapi/asm/sigcontext.h @@ -9,6 +9,10 @@ * before the signal handler was invoked. Note: only add new entries * to the end of the structure. */ +struct fpu_struct { + unsigned long long fd_regs[32]; + unsigned long fpcsr; +}; struct zol_struct { unsigned long nds32_lc; /* $LC */ @@ -54,6 +58,7 @@ struct sigcontext { unsigned long fault_address; unsigned long used_math_flag; /* FPU Registers */ + struct fpu_struct fpu; struct zol_struct zol; }; |