Skip to contentSkip to conversation

ppc32 power3/4 pmac_cache.S build breakage fix.

PATCH Sven Luther 2 participants 3 messages Mar 27, 2005 – Mar 28, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

Find attached a trivial fix for the 32bit power3 and power4 introduced by benh's latest round of pmac sleep fixes.

I am not sure if this is the best way to solve this problem, but it fixes the issue.

Friendly,

Sven Luther

arch/ppc/platforms/Makefile renamed from arch/ppc/platforms/Makefile.orig +6 -0
@@ -9,9 +9,15 @@
 ifeq ($(CONFIG_APUS),y)
 obj-$(CONFIG_PCI)		+= apus_pci.o
 endif
+ifeq ($(CONFIG_6xx),y)
 obj-$(CONFIG_PPC_PMAC)		+= pmac_pic.o pmac_setup.o pmac_time.o \
 					pmac_feature.o pmac_pci.o pmac_sleep.o \
 					pmac_low_i2c.o pmac_cache.o
+else
+obj-$(CONFIG_PPC_PMAC)		+= pmac_pic.o pmac_setup.o pmac_time.o \
+					pmac_feature.o pmac_pci.o pmac_sleep.o \
+					pmac_low_i2c.o
+endif
 obj-$(CONFIG_PPC_CHRP)		+= chrp_setup.o chrp_time.o chrp_pci.o \
 					chrp_pegasos_eth.o
 obj-$(CONFIG_PPC_PREP)		+= prep_pci.o prep_setup.o
#1 lore raw
Quoted 7 lines · Sven Luther

Hello,

Find attached a trivial fix for the 32bit power3 and power4 introduced by benh's latest round of pmac sleep fixes.

I am not sure if this is the best way to solve this problem, but it fixes the issue.

Bah, fixe plustot dans le code ... ajout un #ifdef CONFIG_ALTIVEC autour du dssall (enfin, de la section entiere avec le BEGIN/END inclus) pour le moment, quoi que ici, le mieux est encore de dire a l'asm de pas moufter. En ce qui concerne pmac_sleep vs. pmac_cache, #ifdef aussi pour le moment.

Ben.

#2 lore raw
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 5 lines · Sven Luther

Hello,

Find attached a trivial fix for the 32bit power3 and power4 introduced by benh's latest round of pmac sleep fixes.

Quoted 8 lines
Quoted 2 lines

I am not sure if this is the best way to solve this problem, but it fixes the issue.

Bah, fixe plustot dans le code ... ajout un #ifdef CONFIG_ALTIVEC autour du dssall (enfin, de la section entiere avec le BEGIN/END inclus) pour le moment, quoi que ici, le mieux est encore de dire a l'asm de pas moufter. En ce qui concerne pmac_sleep vs. pmac_cache, #ifdef aussi pour le moment.

Le truc, c'est que l'ensemble du code de pmac_cache, il ne devrait pas etre compiler si on est pas CONFIG_6xx, car la fonction n'est jamais appelle depuis pmac_sleep si on est pas CONFIG_6xx.

Je te laisse gerer cela pour upstream ?

Amicalement,

Sven Luther