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