PPC: Add print_bats() to lib_ppc/bat_rw.c
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
@@ -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
Wolfgang Denk
AppliedPATCH 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_ppcso others can use it (and add it to reginfo commands if so desired).
Quoted 7 lines
Signed-off-by Becky Bruce <[email protected]>---
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