[CRIU] [PATCH 00/44] Prepare multiarch support (v2)

Alexander Kartashov alekskartashov at parallels.com
Wed Jan 9 10:33:37 EST 2013


On 01/09/2013 07:09 PM, Pavel Emelyanov wrote:
> 41 -- These introduce some srch-specific replacements. I need to see how
>        it will look for ARM, thus start sending ARM patches with those
>        macros inside.

On ARM the macro MMAP_OFFSET looks in this way:

MMAP_OFFSET(offset) (offset >> 12).

Unfortunately, the syscall sys_mmap isn't present on ARM so
we have to do the following here:

* declare __NR_mmap as __NR_mmap2;
* convert the argument offset into page frame number by the macro 
MMAP_OFFSET.

Is it better to make the function mmap_seized arch-dependent?

-- 
Sincerely yours,
Alexander Kartashov

Intern
Core team

www.parallels.com

Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com



More information about the CRIU mailing list