From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: S3 resume on Fujitsu-Siemens Amilo A7620 (CONTINUES) Date: Mon, 18 Oct 2004 14:47:56 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20041018124756.GA28463@elf.ucw.cz> References: <20041018134238.4cf1b380.albeclemit@yahoo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20041018134238.4cf1b380.albeclemit-whZMOeQn8C0@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Alberto Piai Cc: HIROIT-JE5g2YyFxFHQT0dZR+AlfA@public.gmane.org, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org, len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi! > Please refer to threads "ACPI S3 resume only reboots" and "[PATCH] GDT table patch for resume only reboots problem" for history on this thread. I moved to a new one because was becoming hard to follow. > > Properly using beeping code by Pavel I was able to follow the code after > wakeup_pmode_return: > movw $__KERNEL_DS, %ax > movw %ax, %ss > and verified that it doesn't hang at that point. > > Wakeup works until: > [...] > # and restore the stack ... but you need gdt for this to work > movl saved_context_esp, %esp > > movl %cs:saved_magic, %eax > cmpl $0x12345678, %eax > jne bogus_magic > > # jump to place where we left off > movl saved_eip,%eax > jmp *%eax ###BEFORE THE JMP IT'S STILL ALIVE! > [...] > > If i let it enter the jmp, it hangs. How can i follow that jump? Does that mean that we're going out of wakeup.S, finally? That would be a progress. > Yes, you are going out of wakeup.S... Actually no. You are going to ret_point down in do_suspend_lowlevel. Pavel -- People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl! ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl