linux-mips
[Top] [All Lists]

Re: [loongson-PATCH-v2 23/23] Hibernation Support in mips system

To: linux-mips@linux-mips.org
Subject: Re: [loongson-PATCH-v2 23/23] Hibernation Support in mips system
From: Wu Zhangjin <wuzj@lemote.com>
Date: Fri, 29 May 2009 01:10:58 +0800
Cc: Ralf Baechle <ralf@linux-mips.org>, Yan Hua <yanh@lemote.com>, Philippe Vachon <philippe@cowpig.ca>, Zhang Le <r0bertz@gentoo.org>, Zhang Fuxin <zhangfx@lemote.com>, loongson-dev <loongson-dev@googlegroups.com>, Nicholas Mc Guire <der.herr@hofr.at>, Liu Junliang <liujl@lemote.com>, Erwan Lerale <erwan@thiscow.com>
In-reply-to: <1483a7cb0f587bd329ea3ca8d3af2881afadaf5e.1243362545.git.wuzj@lemote.com>
Organization: www.lemote.com, Changshu City, JiangSu Province, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1243362545.git.wuzj@lemote.com> <1483a7cb0f587bd329ea3ca8d3af2881afadaf5e.1243362545.git.wuzj@lemote.com>
Reply-to: wuzj@lemote.com
Sender: linux-mips-bounce@linux-mips.org
Hi,

> +.text
> +LEAF(swsusp_arch_suspend)
[...]
> +     PTR_S a0, PT_R4(t0)
> +     PTR_S a1, PT_R5(t0)
> +     PTR_S a2, PT_R6(t0)

ooh, seems miss:

        PTR_S a3, PT_R7(t0)

and is there a need to save/restore a4,a5,a6,a7 in 64bit kernel? 

> +     PTR_S v1, PT_R3(t0)
> +     j swsusp_save
> +END(swsusp_arch_suspend)
> +
> +LEAF(swsusp_arch_resume)
[...]
> +     PTR_L a0, PT_R4(t0)
> +     PTR_L a1, PT_R5(t0)
> +     PTR_L a2, PT_R6(t0)
> +     PTR_L a3, PT_R7(t0)
> +     PTR_LI v0, 0x0
> +     PTR_L v1, PT_R3(t0)
> +     jr ra
> +END(swsusp_arch_resume)


<Prev in Thread] Current Thread [Next in Thread>