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

Catalin Marinas catalin.marinas at arm.com
Wed Apr 20 09:38:14 PDT 2016


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>

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

-- 
Catalin



More information about the linux-arm-kernel mailing list