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 USER( lbi.bi, \dst, [\addr], \adj)
12 .macro sbi1 src, addr, adj
13 sbi.bi \src, [\addr], \adj
16 .macro lmw1 start_reg, addr, end_reg
17 USER( lmw.bim, \start_reg, [\addr], \end_reg)
20 .macro smw1 start_reg, addr, end_reg
21 smw.bim \start_reg, [\addr], \end_reg
25 /* Prototype: int __arch_copy_from_user(void *to, const char *from, size_t n)
26 * Purpose : copy a block from user memory to kernel memory
27 * Params : to - kernel memory
28 * : from - user memory
29 * : n - number of bytes to copy
30 * Returns : Number of bytes NOT copied.
34 ENTRY(__arch_copy_from_user)
36 #include "copy_template.S"
45 ENDPROC(__arch_copy_from_user)