From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: ACPI S3 resume only reboots Date: Sun, 17 Oct 2004 21:43:07 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20041017194307.GC7476@elf.ucw.cz> References: <20041004133340.76ba05ba.albeclemit@yahoo.it> <20041009130628.GA21781@elf.ucw.cz> <20041010105635.GA3362@doc.ic.ac.uk> <20041012175810.2920edf2.albeclemit@yahoo.it> <416C0F14.5000107@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <416C0F14.5000107-Y6VGUYTwhu0@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Nate Lawson Cc: Alberto , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi! > >>>>How could i try to debug this to give you more info? > >>> > >>>You basically need to fix this yourself. Add infinite loops to > >>>wakeup.S to see where it breaks. > > > >I isolated the line were it breaks and reboots. > > > >Code from arch/i386/kernel/acpi/wakeup.S > > > >[...] > > # setup data segment > > movw %cs, %ax > > movw %ax, %ds # Make ds:0 > > point to wakeup_start > > movw %ax, %ss > > 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 > > Hehe. Look up above where the stack pointer is changed to point to the > wakeup stack and then 0 is pushed on it. It's likely there is some > problem with the config or location of the wakeup stack. Is it possible that %cs:%ip is 1:2345 instead of 1234:5 at beggining of this? movw %ip, %ax testw %ax, $0xff00 jnz some_horrible_death .... some_horrible_death: BEEP jmp some_horrible_death Hmm, that does not work, %ip can't be accessed like that. Any ideas? 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