linux-IllusionX/arch/csky/mm
Eric W. Biederman 0e25498f8c exit: Add and use make_task_dead.
There are two big uses of do_exit.  The first is it's design use to be
the guts of the exit(2) system call.  The second use is to terminate
a task after something catastrophic has happened like a NULL pointer
in kernel code.

Add a function make_task_dead that is initialy exactly the same as
do_exit to cover the cases where do_exit is called to handle
catastrophic failure.  In time this can probably be reduced to just a
light wrapper around do_task_dead. For now keep it exactly the same so
that there will be no behavioral differences introducing this new
concept.

Replace all of the uses of do_exit that use it for catastraphic
task cleanup with make_task_dead to make it clear what the code
is doing.

As part of this rename rewind_stack_do_exit
rewind_stack_and_make_dead.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2021-12-13 12:04:45 -06:00
..
asid.c csky: Add new asid lib code from arm 2019-07-19 14:21:36 +08:00
cachev1.c csky: Support icache flush without specific instructions 2020-02-21 15:43:24 +08:00
cachev2.c csky/ftrace: Fixup ftrace_modify_code deadlock without CPU_HAS_ICACHE_INS 2020-03-31 22:15:42 +08:00
context.c csky: Use generic asid algorithm to implement switch_mm 2019-07-19 14:21:36 +08:00
dma-mapping.c dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:06 +02:00
fault.c exit: Add and use make_task_dead. 2021-12-13 12:04:45 -06:00
highmem.c csky/mm/highmem: Switch to generic kmap atomic 2020-11-06 23:14:56 +01:00
init.c mm: move mem_init_print_info() into mm_init() 2021-04-30 11:20:42 -07:00
ioremap.c csky: use generic ioremap 2019-11-12 11:37:52 +01:00
Makefile csky: Fixup ftrace modify panic 2020-02-21 15:43:24 +08:00
syscache.c csky: syscache: Fixup duplicate cache flush 2021-07-04 17:39:54 +08:00
tcm.c csky: Tightly-Coupled Memory or Sram support 2020-02-21 15:43:24 +08:00
tlb.c csky: Fix TLB maintenance synchronization problem 2021-01-12 09:52:41 +08:00