[Top] [All Lists]

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

To: "Hyon Lim" <>, "Ralf Baechle" <>
Subject: RE: implementation of software suspend on MIPS. (system log)
From: "Uhler, Mike" <>
Date: Wed, 31 Oct 2007 11:32:22 -0700
Cc: <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
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 or other references on MIPS assembly language programming.

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



From: [] On Behalf Of Hyon Lim
Sent: Wednesday, October 31, 2007 11:15 AM
To: Ralf Baechle
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 <> 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?


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