On Tue, 20 Jan 2004 09:03:11 +1100 Benjamin Herrenschmidt wrote: > On Tue, 2004-01-20 at 04:56, Nigel Cunningham wrote: > > Hi. > > > > On Tue, 2004-01-20 at 00:39, Benjamin Herrenschmidt wrote: > > > I see no reason why this would be needed on ppc, only the last > > > step, that is the actual CPU state save, should matter. > > > > Besides saving the CPU state, the code copies the original kernel > > back. It sort of defeats the purpose to remove that code :> > Attached file is current version of port swsusp to ppc, STILL can not works, Benjamin, gave me some comments. I has add one files swsusp2-asm.S. The save/restore processor state base on pmac_sleep.S. The copybackup is copy from gcc generate assmeble. Now the suspend has no problem, resume can not works, strange. -- Hu Gang / Steve Linux Registered User 204016 GPG Public Key: http://soulinfo.com/~hugang/HuGang.asc