Hi! > > > > Well, *all* the data pages are saved, so that would be okay (even if > > > > they changed, as I'm replacing all the data pages, that should work), > > > > but I'm not saving kernel text for example. > > > > > > Ahh... that's an interesting point. You aren't saving kernel text. I'm > > > not sure how that could be a problem for me. I think i'll just save it > > > along with the image though. > > > > Also pay attetion to page tables. I know that page tables "copy" > > routine is running from are same between suspend and resume kernel. > > I plan to run everything provided by the suspended kernel actually. My idea > is to keep a handle to a page of the suspended kernel that contains that > code and just kick into it. Copying pages to their final location without > overriding the source pages is a bit of a funky job, but I had to do it > already with BootX so ... I'll work on that during one of the upcoming few > weeks hopefully, I'm a bit swamped with 3 different things at the > moment. You actually *know* that half of memory is free during resume, so you can load kernel-to-be-resumed data into that free memory. That's how swsusp works. It makes it quite simple... Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
References:
- Re: Help port swsusp to ppc.Benjamin Herrenschmidt
- Re: Help port swsusp to ppc.Nigel Cunningham
- Re: Help port swsusp to ppc.Benjamin Herrenschmidt
- Re: Help port swsusp to ppc.Pavel Machek
- Re: Help port swsusp to ppc.Benjamin Herrenschmidt
- Re: Help port swsusp to ppc.Geert Uytterhoeven
- Re: Help port swsusp to ppc.Pavel Machek
- Re: Help port swsusp to ppc.Benjamin Herrenschmidt
- Re: Help port swsusp to ppc.Pavel Machek
- Re: Help port swsusp to ppc.Benjamin Herrenschmidt
- Prev by Date: Re: Fw: Slab coruption and oops with 2.6.1-mm4
- Next by Date: Re: TG3: very high CPU usage
- Previous by thread: Re: Help port swsusp to ppc.
- Next by thread: Re: Help port swsusp to ppc.
- Indexes:[Main][Thread]