Noted. I'll convert it back.
> > This is better done as
> >
> > for (loop = 0; loop < nr_copy_pagse; loop++) {
> > memcpy((char *)pagedir_nosave[loop].orig_address,
> > (char *)pagedir_nosave[loop].address,
> > PAGE_SIZE);
> > __flush_tlb();
> > }
>
> Hehe, try it.
>
> You may not do function call at this point, because you are
> overwriting your stack. See mails with Andi Kleen. This *needs* to be
> in assembly.
memcpy() is inlined, at least on x86, and it seems to work fine for me
here. Besides, even if memcpy is not safe, you could at least copy 4 bytes
at a time. ;)
-pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/