diff options
author | Guan Xuetao <gxt@mprc.pku.edu.cn> | 2016-09-27 19:55:51 +0800 |
---|---|---|
committer | Guan Xuetao <gxt@mprc.pku.edu.cn> | 2016-11-16 21:37:51 +0800 |
commit | 09f0c7dec2deb36a6f95da9a4eaf6772d2cc626a (patch) | |
tree | b98c5b80ed039c7a44238ffc1bac931b82f3d84e /arch/unicore32 | |
parent | bb3d836a8767bd91360069ed1f377a2637545b2c (diff) |
unicore32-oldabi: add sigcontext.h support for UNICORE32_OLDABI
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Qin Rui <qinrui@pku.edu.cn>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'arch/unicore32')
-rw-r--r-- | arch/unicore32/include/uapi/asm/sigcontext.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/unicore32/include/uapi/asm/sigcontext.h b/arch/unicore32/include/uapi/asm/sigcontext.h index 6a2d7671c052..cbc3446b9c03 100644 --- a/arch/unicore32/include/uapi/asm/sigcontext.h +++ b/arch/unicore32/include/uapi/asm/sigcontext.h @@ -18,6 +18,7 @@ * before the signal handler was invoked. Note: only add new entries * to the end of the structure. */ +#ifndef CONFIG_UNICORE32_OLDABI struct sigcontext { unsigned long trap_no; unsigned long error_code; @@ -25,5 +26,18 @@ struct sigcontext { unsigned long fault_address; struct pt_regs regs; }; +#else +struct pt_regs_sigcontext { + unsigned long uregs[33]; +}; + +struct sigcontext { + unsigned long trap_no; + unsigned long error_code; + unsigned long oldmask; + struct pt_regs_sigcontext regs; + unsigned long fault_address; +}; +#endif /* CONFIG_UNICORE32_OLDABI */ #endif |