* [PATCH] High BAT initialization wrong
@ 2004-03-06 0:04 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-03-06 0:04 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list
Hi !
The code initializing the "high" BATs on CPUs like the 750FX got
broken when copied over from 2.4. This cause random problems with
machines using those CPUs (iBook 2s typically). Please apply this
fix asap. Thanks.
===== arch/ppc/kernel/head.S 1.41 vs edited =====
--- 1.41/arch/ppc/kernel/head.S Tue Feb 17 05:37:14 2004
+++ edited/arch/ppc/kernel/head.S Sat Mar 6 11:03:00 2004
@@ -1492,22 +1492,22 @@
* seems that doesn't affect our ability to actually
* write to these SPRs.
*/
- mtspr SPRN_DBAT4U,r20
- mtspr SPRN_DBAT4L,r20
- mtspr SPRN_DBAT5U,r20
- mtspr SPRN_DBAT5L,r20
- mtspr SPRN_DBAT6U,r20
- mtspr SPRN_DBAT6L,r20
- mtspr SPRN_DBAT7U,r20
- mtspr SPRN_DBAT7L,r20
- mtspr SPRN_IBAT4U,r20
- mtspr SPRN_IBAT4L,r20
- mtspr SPRN_IBAT5U,r20
- mtspr SPRN_IBAT5L,r20
- mtspr SPRN_IBAT6U,r20
- mtspr SPRN_IBAT6L,r20
- mtspr SPRN_IBAT7U,r20
- mtspr SPRN_IBAT7L,r20
+ mtspr SPRN_DBAT4U,r10
+ mtspr SPRN_DBAT4L,r10
+ mtspr SPRN_DBAT5U,r10
+ mtspr SPRN_DBAT5L,r10
+ mtspr SPRN_DBAT6U,r10
+ mtspr SPRN_DBAT6L,r10
+ mtspr SPRN_DBAT7U,r10
+ mtspr SPRN_DBAT7L,r10
+ mtspr SPRN_IBAT4U,r10
+ mtspr SPRN_IBAT4L,r10
+ mtspr SPRN_IBAT5U,r10
+ mtspr SPRN_IBAT5L,r10
+ mtspr SPRN_IBAT6U,r10
+ mtspr SPRN_IBAT6L,r10
+ mtspr SPRN_IBAT7U,r10
+ mtspr SPRN_IBAT7L,r10
END_FTR_SECTION_IFSET(CPU_FTR_HAS_HIGH_BATS)
blr
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-06 0:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-06 0:04 [PATCH] High BAT initialization wrong Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®