Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1187415

[PATCH v2 11/13] xtensa: don't touch EXC_TABLE_FIXUP in _switch_to

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Max Filippov <jcmvbkbc@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 11/13] xtensa: don't touch EXC_TABLE_FIXUP in _switch_to
Date Sat, 18 Jul 2015 10:40:01 +0200
Message-ID <pNvP3-7hz-7@gated-at.bofh.it> (permalink)
References <pNvP3-7hz-5@gated-at.bofh.it>
X-Original-To linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cqPLobOu9gpwRf/IeidNTNdhUzpipRBDUfDO1VW5ZCk=; b=lBsDQueHmZF+QpiuA2WJolUSCsjAuwRn8QE5jDy22ug0lbYYQaBv00cfXMoNOpPMKV GSXgW6v6jjOVZeGgUzt5YapAaiGgeLoK7iRr+yWJPE0098k4UVx8vOLIM7HLLp/aYXRn Jm7K2TIRvgMoftkx4HJ7bEkxmTQZjhEvKtj1RjqhDfpXVodaQELevR/WAKkmNVIbjZs1 16eorYU1LvyaQqV78OREJ92dygw4fAFjpPPRZSHYD84hBa1i2ecOsMnGYv3jhtJgEI3h GG7Uq/qdUdeu+N2YmXKvni/IfmdMhmZfFGxsvd4kamR8fO+/775M1svMLDwAvoe2IziM 9ZvQ==
X-Received by 10.112.147.8 with SMTP id tg8mr9260156lbb.62.1437208261386; Sat, 18 Jul 2015 01:31:01 -0700 (PDT)
X-Mailer git-send-email 1.8.1.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 40
Organization linux.* mail to news gateway
X-Original-Cc Chris Zankel <chris@zankel.net>, Marc Gauthier <marc@cadence.com>, Max Filippov <jcmvbkbc@gmail.com>
X-Original-Date Sat, 18 Jul 2015 11:30:14 +0300
X-Original-Message-ID <1437208216-15729-12-git-send-email-jcmvbkbc@gmail.com>
X-Original-References <1437208216-15729-1-git-send-email-jcmvbkbc@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1187415

Show key headers only | View raw


There's no way _switch_to can produce double exceptions now, don't
enter/leave EXC_TABLE_FIXUP critical section.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 arch/xtensa/kernel/entry.S | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S
index 5771d5c..309e71b 100644
--- a/arch/xtensa/kernel/entry.S
+++ b/arch/xtensa/kernel/entry.S
@@ -1883,9 +1883,7 @@ ENTRY(_switch_to)
 	/* Disable ints while we manipulate the stack pointer. */
 
 	rsil	a14, LOCKLEVEL
-	rsr	a3, excsave1
 	rsync
-	s32i	a3, a3, EXC_TABLE_FIXUP	/* enter critical section */
 
 	/* Switch CPENABLE */
 
@@ -1906,9 +1904,7 @@ ENTRY(_switch_to)
 	 */
 
 	rsr	a3, excsave1		# exc_table
-	movi	a6, 0
 	addi	a7, a5, PT_REGS_OFFSET
-	s32i	a6, a3, EXC_TABLE_FIXUP
 	s32i	a7, a3, EXC_TABLE_KSTK
 
 	/* restore context of the task 'next' */
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v2 11/13] xtensa: don't touch EXC_TABLE_FIXUP in _switch_to Max Filippov <jcmvbkbc@gmail.com> - 2015-07-18 10:40 +0200

csiph-web