]> git.itanic.dy.fi Git - linux-stable/commitdiff
xtensa: clear all DBREAKC registers on start
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 3 Mar 2016 15:34:29 +0000 (18:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:12:46 +0000 (09:12 -0700)
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

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/head.S

index aeeb3cc8a4109e59bc6ce5f23fd88c21c0450f3f..288b61f080fe85c5d999b686b8e0d872b4f996ee 100644 (file)
@@ -123,7 +123,7 @@ ENTRY(_startup)
        wsr     a0, icountlevel
 
        .set    _index, 0
-       .rept   XCHAL_NUM_DBREAK - 1
+       .rept   XCHAL_NUM_DBREAK
        wsr     a0, SREG_DBREAKC + _index
        .set    _index, _index + 1
        .endr