[PATCH v7 12/16] arm64: Add new asm macro copy_page

James Morse james.morse at arm.com
Wed Apr 20 09:56:58 PDT 2016


On 20/04/16 17:38, Catalin Marinas wrote:
> On Fri, Apr 01, 2016 at 05:53:36PM +0100, James Morse wrote:
>> From: Geoff Levand <geoff at infradead.org>
>>
>> Kexec and hibernate need to copy pages of memory, but may not have all
>> of the kernel mapped, and are unable to call copy_page().
>>
>> Add a simplistic copy_page() macro, that can be inlined in these
>> situations. lib/copy_page.S provides a bigger better version, but
>> uses more registers.
>>
>> Signed-off-by: Geoff Levand <geoff at infradead.org>
>> [Changed asm label to 9998, added commit message]
>> Signed-off-by: James Morse <james.morse at arm.com>
> 
> Good enough for the brief usage:
> 
> Acked-by: Catalin Marinas <catalin.marinas at arm.com>

Thanks,

> Would there be another user of this macro in the future (kexec)?

Yes, this is one of the patches common to the two. Adding this macro was some
review feedback from kexec v12 [0].


Thanks,
James

[0] http://lists.infradead.org/pipermail/kexec/2015-December/014959.html



More information about the linux-arm-kernel mailing list