linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/9] 8xx: Fix CONFIG_PIN_TLB.
@ 2007-09-05 19:27 Scott Wood
  2007-09-05 19:27 ` [PATCH 2/9] 8xx: Infrastructure code cleanup Scott Wood
                   ` (8 more replies)
  0 siblings, 9 replies; 31+ messages in thread
From: Scott Wood @ 2007-09-05 19:27 UTC (permalink / raw)
  To: galak; +Cc: linuxppc-dev

1. Only map 512K of the IMMR, rather than 8M, to avoid conflicting with
the default ioremap region.
2. The wrong register was being loaded into SPRN_MD_RPN.

Signed-off-by: Scott Wood <scottwood@freescale.com>
---
 arch/powerpc/kernel/head_8xx.S |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S
index 901be47..e40e122 100644
--- a/arch/powerpc/kernel/head_8xx.S
+++ b/arch/powerpc/kernel/head_8xx.S
@@ -695,7 +695,7 @@ initial_mmu:
 	mtspr	SPRN_MI_AP, r8
 	mtspr	SPRN_MD_AP, r8
 
-	/* Map another 8 MByte at the IMMR to get the processor
+	/* Map another 512 KByte at the IMMR to get the processor
 	 * internal registers (among other things).
 	 */
 #ifdef CONFIG_PIN_TLB
@@ -703,12 +703,12 @@ initial_mmu:
 	mtspr	SPRN_MD_CTR, r10
 #endif
 	mfspr	r9, 638			/* Get current IMMR */
-	andis.	r9, r9, 0xff80		/* Get 8Mbyte boundary */
+	andis.	r9, r9, 0xfff8		/* Get 512K boundary */
 
 	mr	r8, r9			/* Create vaddr for TLB */
 	ori	r8, r8, MD_EVALID	/* Mark it valid */
 	mtspr	SPRN_MD_EPN, r8
-	li	r8, MD_PS8MEG		/* Set 8M byte page */
+	li	r8, MD_PS512K		/* Set 512K byte page */
 	ori	r8, r8, MD_SVALID	/* Make it valid */
 	mtspr	SPRN_MD_TWC, r8
 	mr	r8, r9			/* Create paddr for TLB */
@@ -730,13 +730,13 @@ initial_mmu:
 	mtspr	SPRN_MD_TWC, r9
 	li	r11, MI_BOOTINIT	/* Create RPN for address 0 */
 	addis	r11, r11, 0x0080	/* Add 8M */
-	mtspr	SPRN_MD_RPN, r8
+	mtspr	SPRN_MD_RPN, r11
 
 	addis	r8, r8, 0x0080		/* Add 8M */
 	mtspr	SPRN_MD_EPN, r8
 	mtspr	SPRN_MD_TWC, r9
 	addis	r11, r11, 0x0080	/* Add 8M */
-	mtspr	SPRN_MD_RPN, r8
+	mtspr	SPRN_MD_RPN, r11
 #endif
 
 	/* Since the cache is enabled according to the information we
-- 
1.5.3

^ permalink raw reply related	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2007-09-06 23:45 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05 19:27 [PATCH 1/9] 8xx: Fix CONFIG_PIN_TLB Scott Wood
2007-09-05 19:27 ` [PATCH 2/9] 8xx: Infrastructure code cleanup Scott Wood
2007-09-05 19:27 ` [PATCH 3/9] 8xx: Add pin and clock setting functions Scott Wood
2007-09-05 19:27 ` [PATCH 4/9] 8xx: Work around CPU15 erratum Scott Wood
2007-09-05 19:28 ` [PATCH 5/9] 8xx: Don't call non-existent Soft_emulate_8xx from SoftwareEmulation Scott Wood
2007-09-05 19:28 ` [PATCH 6/9] 8xx: Set initial memory limit Scott Wood
2007-09-05 19:28 ` [PATCH 7/9] 8xx: mpc885ads cleanup Scott Wood
2007-09-05 19:28 ` [PATCH 8/9] 8xx: Adder 875 support Scott Wood
2007-09-06 14:08   ` Segher Boessenkool
2007-09-06 14:16     ` Scott Wood
2007-09-06 17:50       ` Segher Boessenkool
2007-09-06 18:09         ` Scott Wood
2007-09-06 18:48           ` Segher Boessenkool
2007-09-06 19:12             ` Scott Wood
2007-09-06 19:20               ` Scott Wood
2007-09-06 19:36                 ` Segher Boessenkool
2007-09-06 19:56                   ` Scott Wood
2007-09-06 20:57                     ` Segher Boessenkool
2007-09-06 21:30                       ` Scott Wood
2007-09-06 23:45                         ` Olof Johansson
2007-09-06 19:32               ` Segher Boessenkool
2007-09-05 19:28 ` [PATCH 9/9] 8xx: Embedded Planet EP88xC support Scott Wood
2007-09-05 20:36 ` [PATCH 1/9] 8xx: Fix CONFIG_PIN_TLB Dan Malek
2007-09-05 20:53   ` Scott Wood
2007-09-05 20:59     ` Scott Wood
2007-09-05 22:27       ` Dan Malek
2007-09-06  3:11         ` Scott Wood
2007-09-05 22:08     ` Dan Malek
2007-09-05 22:23       ` Scott Wood
2007-09-05 22:42         ` Dan Malek
2007-09-06  3:01           ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).