[PATCH for-4.10 3/6] MIPS: Only change $28 to thread_info if coming from user mode

2017-04-06 Thread Amit Pundir
From: Matt Redfearn The SAVE_SOME macro is used to save the execution context on all exceptions. If an exception occurs while executing user code, the stack is switched to the kernel's stack for the current task, and register $28 is switched to point to the

[PATCH for-4.10 3/6] MIPS: Only change $28 to thread_info if coming from user mode

2017-04-06 Thread Amit Pundir
From: Matt Redfearn The SAVE_SOME macro is used to save the execution context on all exceptions. If an exception occurs while executing user code, the stack is switched to the kernel's stack for the current task, and register $28 is switched to point to the current_thread_info, which is at the