xtensa: clear all DBREAKC registers on start
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 3 Mar 2016 15:34:29 +0000 (18:34 +0300)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jun 2016 08:42:47 +0000 (10:42 +0200)
commitc716151e12aed51879ca4825c5452e1cd7d0b77e
tree7b9e4249b5983f04863a848bfaf09bbfc4279dc9
parentfd5924d8b354ea5a44668ce20d51cc46057e4181
xtensa: clear all DBREAKC registers on start

commit 7de7ac785ae18a2cdc78d7560f48e3213d9ea0ab upstream.

There are XCHAL_NUM_DBREAK registers, clear them all.
This also fixes cryptic assembler error message with binutils 2.25 when
XCHAL_NUM_DBREAK is 0:

  as: out of memory allocating 18446744073709551575 bytes after a total
  of 495616 bytes

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/xtensa/kernel/head.S