2 * linux/arch/unicore32/lib/copy_page.S
4 * Code specific to PKUnity SoC and UniCore ISA
6 * Copyright (C) 2001-2010 GUAN Xue-tao
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * ASM optimised string functions
14 #include <linux/linkage.h>
15 #include <asm/assembler.h>
16 #include <generated/asm-offsets.h>
17 #include <asm/cache.h>
19 #define COPY_COUNT (PAGE_SZ/256)
24 * UniCore optimised copy_page routine
27 stm.w (r17 - r19, lr), [sp-]
33 ldm.w (r0 - r15), [r18]+
34 stm.w (r0 - r15), [r17]+
38 ldm.w (r17 - r19, pc), [sp]+