linux-mips
[Top] [All Lists]

Re: implementation of software suspend on MIPS.

To: "Uhler, Mike" <uhler@mips.com>
Subject: Re: implementation of software suspend on MIPS.
From: "Hyon Lim" <alex@alexlab.net>
Date: Wed, 31 Oct 2007 05:03:58 +0900
Cc: linux-mips@linux-mips.org
In-reply-to: <692AB3595F5D76428B34B9BEFE20BC1FDD0219@Exchange.mips.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <dd7dc2bc0710301212s7b364392n39a149764a4117cf@mail.gmail.com> <692AB3595F5D76428B34B9BEFE20BC1FDD0219@Exchange.mips.com>
Sender: linux-mips-bounce@linux-mips.org
Thank you very much. I think my work is first contribution about software suspend on mips.
I cannot find any history related to my work on this list.
I'm looking forward to receiving your answer.
 
On 10/31/07, Uhler, Mike <uhler@mips.com> wrote:
I've asked our software team to follow up with you on your questions.
 

/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: Tuesday, October 30, 2007 12:13 PM
To: linux-mips@linux-mips.org
Subject:  implementation of software suspend on MIPS.
Importance: Low

 
Hello.  I need a help for my implementation work on MIPS software suspend.
From 3month ago, I've been coding software suspend(swsusp) on MIPS arch.
I'm developing with MIPS32 4KEc embedded processor for digital appliance.
 
Swsusp has two procedure. the one is suspending procedure and other one is resume procedure.
Yesterday, I confirmed suspending procedure working.
I refered this article.
 
The problem I faced is assembly language for MIPS.
Of course, there are many manuals for this work but, I need a help from MIPS expert.
 
This pseudo code should be implemented by MIPS asm.
 
        for (j = nr_copy_pages; j>0; j--) {
            src = ""
            dst = pagedir_nosave[j].dst;
            for (i=0;i<1024;i++) {
                *dst++ = *src++;
            }
        }
 
nr_copy_pages is unsigned long variable.
and pagedir_nosave is a suspend_pagedir_t type structure array(pointer). (you can refer following url. Line 101. : http://lxr.linux.no/source/kernel/power/swsusp.c?v=2.6.10)
code skeleton or useful material will be welcomed. (whatever you have.)
 
The second problem is
" which register should be prevented? "
 
I saved $v0-v1. $a0-$a3. $t0-t7. $s0-s7. $t8-t9. $gp,sp,fp,ra.

--
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



--
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>