PPC: Change lib_ppc/bat_rw.c to use high bats
PATCH v4 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.
---
No, I'm not striving for a world record in trivial patch resubmissions. This fixes a typo where I write DBAT3 with a value intended for DBAT4, which, you might imagine, causes much breakage. Fortunately, nobody but me is running this code right now, so I only broke myself :)
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
@@ -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
Wolfgang Denk
AppliedPATCH v4 2/4 PPC: Change lib_ppc/bat_rw.c to use high bats
Quoted 9 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.
Signed-off-by Becky Bruce <[email protected]>---
Quoted 8 lines
No, I'm not striving for a world record in trivial patch resubmissions. This fixes a typo where I write DBAT3 with a value intended for DBAT4, which, you might imagine, causes much breakage. Fortunately, nobody but me is running this code right now, so I only broke myself :)
include/asm-ppc/mmu.h | 6 ++- lib_ppc/bat_rw.c | 132 ++++++++++++++++++++++++++++++++++--------------- 2 files changed, 97 insertions(+), 41 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 "Maintain an awareness for contribution -- to your schedule, your project, our company." - A Group of Employees