[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: iBook: dump/restore does not make it either
- Subject: Re: iBook: dump/restore does not make it either
- From: Tsubai Masanari <tsubai@iri.co.jp>
- To: port-powerpc-ja@jp.netbsd.org
- Date: Sat, 28 Oct 2000 01:34:29 +0900
- Message-Id: <E13pCSb-0003Jd-00@ruri.iri.co.jp>
- In-Reply-To: <E13WyIl-0006Mb-00@ruri.iri.co.jp>
- Delivered-To: mailing list port-powerpc-ja@jp.netbsd.org
- Mailing-List: contact port-powerpc-ja-help@jp.netbsd.org; run by ezmlm-idx
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 のばかー。もっと小さい差分を生成できるはずなのにー。