Re: [PATCH v6 12/36] nds32: Process management

2018-01-18 Thread Arnd Bergmann
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > +void machine_restart(char *__unused) > +{ > + /* > +* Clean and disable cache, and turn off interrupts > +*/ > + cpu_proc_fin(); > + > + /* > +* Tell the mm system that we are going to reboot - > +

[PATCH v6 12/36] nds32: Process management

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/current.h | 12 ++ arch/nds32/include/