Refactor FPU code in signal setup/return procedures
authorAlan Kao <alankao@andestech.com>
Tue, 9 Oct 2018 02:18:31 +0000 (10:18 +0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:02:23 +0000 (17:02 -0700)
commit007f5c35895786fdc797f13313b9493fe5d5e655
tree37ed6cf8decee06defddd93eccc31096f32458ad
parente68ad867f77e1a839ad496ffcbd88b9c96769b5b
Refactor FPU code in signal setup/return procedures

FPU-related logic is separated from normal signal handling path in
this patch.  Kernel can easily be configured to exclude those procedures
for no-FPU systems.

Signed-off-by: Alan Kao <alankao@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
Cc: Vincent Chen <vincentc@andestech.com>
Cc: Zong Li <zong@andestech.com>
Cc: Nick Hu <nickhu@andestech.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/signal.c