]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Changed current_thread_info() to an equivalent supported by both clang and GCC
authorDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 24 Feb 2015 15:02:57 +0000 (15:02 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:45 +0000 (17:21 +0200)
commitdb1e5c9946fc5e09983b4a78a5c3a5ea96d7b1e9
tree29120812426aadbd3e521a7013441dbf79671a77
parented56e8c1de0a0c9234318d726a4b4df1953cf4bc
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: Daniel 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: Behan Webster <behanw@converseincode.com>
Patchwork: https://patchwork.linux-mips.org/patch/9311/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/thread_info.h