public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Trivial ppc64 cleanup
@ 2004-05-20  7:05 David Gibson
  0 siblings, 0 replies; only message in thread
From: David Gibson @ 2004-05-20  7:05 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Anton Blanchard, Paul Mackerras, linux-kernel, linuxppc64-dev

Andrew, please apply:

The ppc64 head.S contains an enable_32b_mode function which is used
nowhere.  This patch removes it.

Index: working-2.6/arch/ppc64/kernel/head.S
===================================================================
--- working-2.6.orig/arch/ppc64/kernel/head.S	2004-05-20 12:57:52.000000000 +1000
+++ working-2.6/arch/ppc64/kernel/head.S	2004-05-20 16:37:58.061146128 +1000
@@ -1955,21 +1955,6 @@
 	isync
 	blr
 
-/*
- * This subroutine clobbers r11, r12 and the LR
- */
-_GLOBAL(enable_32b_mode)
-	mfmsr   r11                      /* grab the current MSR */
-	li      r12,1
-	rldicr  r12,r12,MSR_SF_LG,(63-MSR_SF_LG)
-	andc	r11,r11,r12
-	li      r12,1
-	rldicr  r12,r12,MSR_ISF_LG,(63-MSR_ISF_LG)
-	andc	r11,r11,r12
-	mtmsrd  r11
-	isync
-	blr
-
 #ifdef CONFIG_PPC_PSERIES
 /*
  * This is where the main kernel code starts.



-- 
David Gibson			| For every complex problem there is a
david AT gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-20  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-20  7:05 Trivial ppc64 cleanup David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox