Skip to contentSkip to conversation

PPC: Add print_bats() to lib_ppc/bat_rw.c

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

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 3/4 PPC: Add print_bats() to lib_ppc/bat_rw.c

From: Becky Bruce <[email protected]>

This function prints the values of all the BAT register pairs - I needed this for debug earlier this week; adding it to lib_ppc so others can use it (and add it to reginfo commands if so desired).

---
Resend - eliminate accidental spaces instead of tabs.

 include/asm-ppc/mmu.h |    1 +
 lib_ppc/bat_rw.c      |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)
include/asm-ppc/mmu.h +1 -0
index dc4d66c..1e3c2cb 100644
@@ -149,6 +149,7 @@ typedef enum {
 
 extern int read_bat(ppc_bat_t bat, unsigned long *upper, unsigned long *lower);
 extern int write_bat(ppc_bat_t bat, unsigned long upper, unsigned long lower);
+extern void print_bats(void);
 
 #endif /* __ASSEMBLY__ */
 
lib_ppc/bat_rw.c +41 -0

44 lines not on this page · raw message

Signature · 1 line
1.5.4.1
#1 lore raw

PATCH v3 3/4 PPC: Add print_bats() to lib_ppc/bat_rw.c

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

From: Becky Bruce <[email protected]>

This function prints the values of all the BAT register pairs - I needed this for debug earlier this week; adding it to lib_ppc so others can use it (and add it to reginfo commands if so desired).

Quoted 7 lines

---
Resend - eliminate accidental spaces instead of tabs.

 include/asm-ppc/mmu.h |    1 +
 lib_ppc/bat_rw.c      |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)

Applied, thanks.

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
"A great many people think they are thinking when they are merely re-
arranging their prejudices."                          - William James