linux-sg2042/arch/nios2/kernel
Eric W. Biederman c046e2c693 signal/nios2: Use force_sig_fault where appropriate
Filling in struct siginfo before calling force_sig_info a tedious and
error prone process, where once in a great while the wrong fields
are filled out, and siginfo has been inconsistently cleared.

Simplify this process by using the helper force_sig_fault.  Which
takes as a parameters all of the information it needs, ensures
all of the fiddly bits of filling in struct siginfo are done properly
and then calls force_sig_info.

In short about a 5 line reduction in code for every time force_sig_info
is called, which makes the calling function clearer.

Cc: Ley Foon Tan <lftan@altera.com>
Cc: nios2-dev@lists.rocketboards.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2018-04-25 10:44:04 -05:00
..
.gitignore nios2: add .gitignore entries for auto-generated files 2017-05-08 16:59:19 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
asm-offsets.c nios2: asm-offsets: Remove unused definition TI_TASK 2014-12-08 12:56:12 +08:00
cpuinfo.c nios2: Add CDX support 2017-05-08 16:59:19 +08:00
entry.S nios2: rework trap handler 2015-04-20 11:11:14 +08:00
head.S nios2: Kernel booting and initialization 2014-12-08 12:55:49 +08:00
insnemu.S nios2: Traps exception handling 2014-12-08 12:55:50 +08:00
irq.c nios2: constify irq_domain_ops 2017-05-08 16:59:19 +08:00
kgdb.c nios2: add kgdb support 2015-02-16 19:26:43 +08:00
misaligned.c nios2: remove unused statistic counters 2015-09-08 01:32:34 +08:00
module.c module: remove mod arg from module_free, rename module_memfree(). 2015-01-20 11:38:33 +10:30
nios2_ksyms.c nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
process.c sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
prom.c nios2: remove arch specific early_init_dt_alloc_memory_arch 2018-01-30 11:17:12 -06:00
ptrace.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
setup.c nios2: remove custom early console implementation 2017-05-11 17:44:21 +08:00
signal.c nios2: signal: Move restart_block to struct task_struct 2015-04-08 13:45:16 +08:00
sys_nios2.c nios2: System calls handling 2014-12-08 12:55:58 +08:00
syscall_table.c nios2: System calls handling 2014-12-08 12:55:58 +08:00
time.c nios2: Use read_persistent_clock64() instead of read_persistent_clock() 2018-04-03 00:36:55 +08:00
traps.c signal/nios2: Use force_sig_fault where appropriate 2018-04-25 10:44:04 -05:00
vmlinux.lds.S nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00