Skip to content
Commit fe92da0f authored by Daniel Sanders's avatar Daniel Sanders Committed by Ralf Baechle
Browse files

MIPS: Changed current_thread_info() to an equivalent supported by both clang and GCC



Without this, a 'break' instruction is executed very early in the boot and
the boot hangs.

The problem is that clang doesn't honour named registers on local variables
and silently treats them as normal uninitialized variables. However, it
does honour them on global variables.

Signed-off-by: default avatarDaniel Sanders <daniel.sanders@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: David Daney <ddaney.cavm@gmail.com>
Acked-by: default avatarBehan Webster <behanw@converseincode.com>
Patchwork: https://patchwork.linux-mips.org/patch/9311/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 65c6896d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment