1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2005-2017 Andes Technology Corporation
4 #include <linux/linkage.h>
5 #include <asm/assembler.h>
8 .macro lbi1 dst, addr, adj
9 lbi.bi \dst, [\addr], \adj
12 .macro sbi1 src, addr, adj
13 USER( sbi.bi, \src, [\addr], \adj)
16 .macro lmw1 start_reg, addr, end_reg
17 lmw.bim \start_reg, [\addr], \end_reg
20 .macro smw1 start_reg, addr, end_reg
21 USER( smw.bim, \start_reg, [\addr], \end_reg)
25 /* Prototype: int __arch_copy_to_user(void *to, const char *from, size_t n)
26 * Purpose : copy a block to user memory from kernel memory
27 * Params : to - user memory
28 * : from - kernel memory
29 * : n - number of bytes to copy
30 * Returns : Number of bytes NOT copied.
34 ENTRY(__arch_copy_to_user)
36 #include "copy_template.S"
45 ENDPROC(__arch_copy_to_user)