Patchwork [U-Boot] MIPS: start.S: remove obsolete 64 bit handling in setup_c0_status

login
register
mail settings
Submitter Daniel Schwierzeck
Date Jan. 31, 2013, 12:25 a.m.
Message ID <1359591950-15086-1-git-send-email-daniel.schwierzeck@gmail.com>
Download mbox | patch
Permalink /patch/217063/
State Accepted
Delegated to: Daniel Schwierzeck
Headers show

Comments

Daniel Schwierzeck - Jan. 31, 2013, 12:25 a.m.
From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
---
 arch/mips/cpu/mips32/start.S | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
Gabor Juhos - Jan. 31, 2013, 10:01 a.m.
Hi Daniel,

> From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
> 
> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

Looks good.

-Gabor

Patch

diff --git a/arch/mips/cpu/mips32/start.S b/arch/mips/cpu/mips32/start.S
index 51ce914..65acf7d 100644
--- a/arch/mips/cpu/mips32/start.S
+++ b/arch/mips/cpu/mips32/start.S
@@ -47,14 +47,6 @@ 
 	.set	pop
 	.endm
 
-	.macro	setup_c0_status_reset
-#ifdef CONFIG_64BIT
-	setup_c0_status ST0_KX 0
-#else
-	setup_c0_status 0 0
-#endif
-	.endm
-
 #define RVECENT(f,n) \
    b f; nop
 #define XVECENT(f,bev) \
@@ -222,7 +214,7 @@  reset:
 	/* WP(Watch Pending), SW0/1 should be cleared */
 	mtc0	zero, CP0_CAUSE
 
-	setup_c0_status_reset
+	setup_c0_status 0 0
 
 	/* Init Timer */
 	mtc0	zero, CP0_COUNT