csky: Reconstruct signal processing
authorGuo Ren <ren_guo@c-sky.com>
Mon, 1 Apr 2019 11:06:09 +0000 (19:06 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 05:44:57 +0000 (13:44 +0800)
commitbf241682936293291dcf40fd93cdd0f5e6222902
tree075f2dfe3861e15cc615bcc39990a744e5f6d1a2
parentf4625ee0e40a5c724bb3f3eb7fd89e491bfd7646
csky: Reconstruct signal processing

Linux kernel has provided some apis for arch signal's implementation.
For example:
restore_saved_sigmask()
set_current_blocked()
restore_altstack()

But in last version of csky signal.c didn't use them and some codes are
confusing, so reconstruct signal.c with reference to riscv's code.

Now csky signal.c implementation are very close to riscv and we can
get the following benefits:
 - Clear code structure
 - The signal code of riscv and csky can be reviewed together
 - Promoting the unification of arch's signal implementation

Also modified the related code in entry.S

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/abiv1/inc/abi/entry.h
arch/csky/abiv1/inc/abi/regdef.h
arch/csky/abiv2/inc/abi/entry.h
arch/csky/abiv2/inc/abi/regdef.h
arch/csky/kernel/atomic.S
arch/csky/kernel/entry.S
arch/csky/kernel/signal.c