From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH] GDT table patch for resume only reboots problem Date: Mon, 18 Oct 2004 01:38:19 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20041017233819.GA13680@elf.ucw.cz> References: <20041017230205.2e50de4c.albeclemit@yahoo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20041017230205.2e50de4c.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: Hiroshi 2 Itoh , 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! > > I hope most of machines can resume with; > > > > Kernel 2.6.9 RC4 > > +wakeup_addr.patch > > +wakeup_gdt.patch > > Sorry, it doesn't work on my system :( > It still reboots on > mov $(wakeup_stack - wakeup_code), %sp # Private stack is needed for ASUS board > movw $0x0e00 + 'S', %fs:(0x12) > > pushl $0 #THIS LINE CAUSES REBOOT # Kill any dangerous flags > popfl > > If I uncomment pushl and popfl it hangs(but not reboot, like going in an infinite loop) later, on > wakeup_pmode_return: > movw $__KERNEL_DS, %ax > movw %ax, %ss #HANGS HERE > movw %ax, %ds Are you sure it hangs there? Your pushl $0 method to force reboot is unlikely to be effective after %ss is set up properly... Which is this point. [That beeping code might be handy here.] Next thing you can try is replacing movw %ax, %ss mov $(wakeup_stack - wakeup_code), %sp # Private stack is needed for ASUS board with movw $0x00, %ss # Warning, will corrupt page #0 if you resume correctly movw %ax, %ss movw $2048, %ax movw %ax, %sp 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