microblaze: Remove additional resr and rear loading

Previous thread: drm/radeon/r6xx/r7xx: further safe reg clean up by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)

Next thread: drm/radeon/r6xx/r7xx: CS parser fixes by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, April 1, 2010 - 10:59 am

Gitweb:     http://git.kernel.org/linus/bd1637d63e82aaf732ffbe907ba887fa12e82df4
Commit:     bd1637d63e82aaf732ffbe907ba887fa12e82df4
Parent:     b175bcfe31cba846d8bfa35a3a4820667f7af383
Author:     Michal Simek <monstr@monstr.eu>
AuthorDate: Fri Mar 19 12:50:35 2010 +0100
Committer:  Michal Simek <monstr@monstr.eu>
CommitDate: Thu Apr 1 08:38:23 2010 +0200

    microblaze: Remove additional resr and rear loading
    
    RESR and REAR uses the same regs in whole file.
    
    Signed-off-by: Michal Simek <monstr@monstr.eu>
---
 arch/microblaze/kernel/hw_exception_handler.S |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/arch/microblaze/kernel/hw_exception_handler.S b/arch/microblaze/kernel/hw_exception_handler.S
index a652add..5d8c3de 100644
--- a/arch/microblaze/kernel/hw_exception_handler.S
+++ b/arch/microblaze/kernel/hw_exception_handler.S
@@ -562,20 +562,16 @@ ex_handler_done:
 		 */
 		mfs	r11, rpid
 		nop
-		mfs	r3, rear		/* Get faulting address */
-		nop
 		/* If we are faulting a kernel address, we have to use the
 		 * kernel page tables.
 		 */
-		ori	r4, r0, CONFIG_KERNEL_START
-		cmpu	r4, r3, r4
-		bgti	r4, ex3
+		ori	r5, r0, CONFIG_KERNEL_START
+		cmpu	r5, r3, r5
+		bgti	r5, ex3
 		/* First, check if it was a zone fault (which means a user
 		 * tried to access a kernel or read-protected page - always
 		 * a SEGV). All other faults here must be stores, so no
 		 * need to check ESR_S as well. */
-		mfs	r4, resr
-		nop
 		andi	r4, r4, 0x800		/* ESR_Z - zone protection */
 		bnei	r4, ex2
 
@@ -590,8 +586,6 @@ ex_handler_done:
 		 * tried to access a kernel or read-protected page - always
 		 * a SEGV). All other faults here must be stores, so no
 		 * need to check ESR_S as well. */
-		mfs	r4, resr
-		nop
 		andi	r4, r4, 0x800		/* ESR_Z */
 		bnei	r4, ex2
 		/* get current task address */
@@ -666,8 +660,6 @@ ex_handler_done:
 		 * R3 = ESR
 		 */
 
-		mfs	r3, rear		/* Get faulting address ...
Previous thread: drm/radeon/r6xx/r7xx: further safe reg clean up by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)

Next thread: drm/radeon/r6xx/r7xx: CS parser fixes by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)