Skip to contentSkip to conversation

PPC: Change lib_ppc/bat_rw.c to use high bats

PATCH Superseded becky.bruce at freescale.com 2 participants 3 messages May 9, 2008 – May 12, 2008

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 2/4 PPC: Change lib_ppc/bat_rw.c to use high bats

From: Becky Bruce <[email protected]>

Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers.

---

resend, moving comma in enum as requested on list

 include/asm-ppc/mmu.h |    6 ++-
 lib_ppc/bat_rw.c      |  132 ++++++++++++++++++++++++++++++++++---------------
 2 files changed, 97 insertions(+), 41 deletions(-)
include/asm-ppc/mmu.h +5 -1
index 49d6860..dc4d66c 100644
@@ -140,7 +140,11 @@ extern void _tlbia(void);		/* invalidate all TLB entries */
 
 typedef enum {
 	IBAT0 = 0, IBAT1, IBAT2, IBAT3,
-	DBAT0, DBAT1, DBAT2, DBAT3
+	DBAT0, DBAT1, DBAT2, DBAT3,
+#ifdef CONFIG_HIGH_BATS
+	IBAT4, IBAT5, IBAT6, IBAT7,
+	DBAT4, DBAT5, DBAT6, DBAT7
+#endif
 } ppc_bat_t;
 
 extern int read_bat(ppc_bat_t bat, unsigned long *upper, unsigned long *lower);
lib_ppc/bat_rw.c +92 -40

184 lines not on this page · raw message

Signature · 1 line
1.5.4.1
#1 lore raw

PATCH v3 2/4 PPC: Change lib_ppc/bat_rw.c to use high bats

Quoted 5 lines · In message <[email protected]> you…

From: Becky Bruce <[email protected]>

Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers.

Just to be sure: I understand this code is for the next release (i.e. whatever comes after v.1.3.3), i. e. not for the upcoming v1.3.3?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"What if" is a trademark of Hewlett Packard, so stop using it in your
sentences without permission, or risk being sued.
#2 lore raw

PATCH v3 2/4 PPC: Change lib_ppc/bat_rw.c to use high bats

Quoted 10 lines · Wolfgang Denk

In message <[email protected]

Quoted 6 lines

you wrote:
From: Becky Bruce <[email protected]>

Currently, this code only deals with BATs 0-3, which makes it useless on systems that support BATs 4-7. Add the support for these registers.

Just to be sure: I understand this code is for the next release (i.e. whatever comes after v.1.3.3), i. e. not for the upcoming v1.3.3?

Right. There's no rush on this.

Thanks!
-Becky