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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx [mailto:linux-mips-bounce@xxxxxxxxxxxxxx] On Behalf Of Hyon Lim
Sent: Wednesday, October 31, 2007 11:15 AM
To: Ralf Baechle
Cc: linux-mips@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx> 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

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux