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

Pavel Emelyanov xemul at parallels.com
Wed Jan 9 10:36:22 EST 2013


On 01/09/2013 07:33 PM, Alexander Kartashov wrote:
> 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?

Yes.


More information about the CRIU mailing list