[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iBook: dump/restore does not make it either



iBook で wdc が〜の件ですが、wdc の方はいじらずに以下のパッチを
あてるとどうでしょうか。PB2400+G3 の場合はこれでいけそうな様子
です。

--- src/sys/arch/macppc/macppc/cpu.c	Tue Sep 12 23:47:38 2000
+++ ./cpu.c	Sat Oct 28 01:16:56 2000
@@ -164,19 +164,12 @@
 	case MPC603:
 	case MPC603e:
 	case MPC603ev:
-		/* Select DOZE mode. */
-		__asm __volatile ("mfspr %0,1008" : "=r"(hid0));
-		hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
-		hid0 |= HID0_DOZE | HID0_DPM;
-		__asm __volatile ("mtspr 1008,%0" :: "r"(hid0));
-		powersave = 1;
-		break;
 	case MPC750:
 	case MPC7400:
-		/* Select NAP mode. */
+		/* Select DOZE mode. */
 		__asm __volatile ("mfspr %0,1008" : "=r"(hid0));
 		hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
-		hid0 |= HID0_NAP | HID0_DPM;
+		hid0 |= HID0_DOZE | HID0_DPM;
 		__asm __volatile ("mtspr 1008,%0" :: "r"(hid0));
 		powersave = 1;
 		break;


# diff のばかー。もっと小さい差分を生成できるはずなのにー。