linux-mips
[Top] [All Lists]

RE: implementation of software suspend on MIPS. (system log)

To: "Hyon Lim" <alex@alexlab.net>, "Ralf Baechle" <ralf@linux-mips.org>
Subject: RE: implementation of software suspend on MIPS. (system log)
From: "Uhler, Mike" <uhler@mips.com>
Date: Wed, 31 Oct 2007 11:32:22 -0700
Cc: <linux-mips@linux-mips.org>
In-reply-to: <dd7dc2bc0710311115x51dfab0bt97cdd810d21d120c@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <dd7dc2bc0710301215m1a5b8d7at85c9afc7976dc21d@mail.gmail.com> <20071031132553.GF14187@linux-mips.org> <dd7dc2bc0710311115x51dfab0bt97cdd810d21d120c@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
Thread-index: Acgb6giUsNThZbAaTc+MFN9yvVp/7QAAYj/Q
Thread-topic: implementation of software suspend on MIPS. (system log)
There are various sources of information available on MIPS assembly language programming.  The easiest way to get what you want is to write the code in C, then push it through the compiler to see what instructions it generates.  You can then hack that code to work in your context.
 
Beyond that, Ralf mentioned the book "See MIPS Run Linux", by Dominic Sweetman.  There is also the GNU gas manual and the MIPS SDE Programmer's Guide (see http://www.mips.com/products/resource-library/product-materials/software) or other references on MIPS assembly language programming.
 

/gmu
---
Michael Uhler, VP Architecture, Software and Platform Engineering
MIPS Technologies, Inc.   Email: uhler AT mips.com
1225 Charleston Road      Voice:  (650)567-5025 
Mountain View, CA 94043
 

 

 


From: linux-mips-bounce@linux-mips.org [mailto:linux-mips-bounce@linux-mips.org] On Behalf Of Hyon Lim
Sent: Wednesday, October 31, 2007 11:15 AM
To: Ralf Baechle
Cc: linux-mips@linux-mips.org
Subject: Re: implementation of software suspend on MIPS. (system log)

The problem is resume process.
Some page copy and other remaining process wasn't implemented.
The code of resume process should be implemented on arch/xxx/power/swsusp.S
So it should be implemented by assembly.
That's the problem...
I've no idea about complex assembly programming. :-)
Could you recommend any pdf or website?
 
On 10/31/07, Ralf Baechle <ralf@linux-mips.org> wrote:
On Wed, Oct 31, 2007 at 04:15:57AM +0900, Hyon Lim wrote:

> [DEBUG] Swsusp_write() @ kernel/power/swsusp.c,874
> [DEBUG] write_suspend_image(), kernel/power/swsusp.c,407
> [DEBUG] init_header(), kernel/power/swsusp.c,337
> [DEBUG] dump_info(), kernel/power/swsusp.c,321
>  swsusp: Version: 132618
>  swsusp: Num Pages: 8192
>  swsusp: UTS Sys: Linux
>  swsusp: UTS Node: (none)
>  swsusp: UTS Release: 2.6.10_SELP_MIPS
>  swsusp: UTS Version: #95 Wed Oct 30 03:46:35 KST 2007
>  swsusp: UTS Machine: mips
>  swsusp: UTS Domain: (none)
>  swsusp: CPUs: 1
>  swsusp: Image: 1896 Pages
>  swsusp: Pagedir: 0 Pages
> [DEBUG] data_write(), kernel/power/swsusp.c,303
> Writing data to swap (1896 pages)... done
> Writing pagedir (8 pages)
> S|
> Powering off system
> Cold reset
>
> This is system log of my implementation.

Excellent, this is looking promising.

Do you still need any help?

Ralf



--
Hyon Lim (임현)
Mobile. 010-8212-1240 (Intl' Call : +82-10-8212-1240)
Fax. 032-232-0578 (Intl' Available)
Homepage : http://www.alexlab.net
Blog : http://www.alexlab.net/blog
<Prev in Thread] Current Thread [Next in Thread>