Skip to contentSkip to conversation

Patch "xtensa: clear all DBREAKC registers on start" has been added to the 4.5-stable tree

PATCH [email protected] 1 participant 1 message Apr 10, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

xtensa: clear all DBREAKC registers on start

to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
xtensa-clear-all-dbreakc-registers-on-start.patch
and it can be found in the queue-4.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 7de7ac785ae18a2cdc78d7560f48e3213d9ea0ab Mon Sep 17 00:00:00 2001

From: Max Filippov <[email protected]>
Date: Thu, 3 Mar 2016 18:34:29 +0300
Subject: xtensa: clear all DBREAKC registers on start

From: Max Filippov <[email protected]>

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

---
 arch/xtensa/kernel/head.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/xtensa/kernel/head.S +1 -1
@@ -128,7 +128,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

Patches currently in stable-queue which might be from [email protected] are

queue-4.5/xtensa-iss-don-t-hang-if-stdin-eof-is-reached.patch queue-4.5/xtensa-clear-all-dbreakc-registers-on-start.patch queue-4.5/xtensa-fix-preemption-in-clear-copy-_user_highpage.patch