Merge 'drm-3264' branch of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/airlied...
[pandora-kernel.git] / arch / xtensa / boot / lib / memcpy.S
1 /*
2  *  arch/xtensa/lib/memcpy.S
3  *
4  *  ANSI C standard library function memcpy
5  *
6  *  This file is subject to the terms and conditions of the GNU General
7  *  Public License.  See the file "COPYING" in the main directory of
8  *  this archive for more details.
9  *
10  *  Copyright (C) 2002 Tensilica Inc.
11  */
12
13 #define _ASMLANGUAGE
14 #include <xtensa/config/core.h>
15
16 .text
17 .align  4
18 .global bcopy
19 .type   bcopy,@function
20 bcopy:
21         movi    a14, xthal_bcopy        // a14 safe to use regardless of whether caller
22                                         //   used call4 or call8 (can't have used call12)
23         jx      a14                     // let the Core HAL do the work
24
25 .text
26 .align  4
27 .global memcpy
28 .type   memcpy,@function
29 memcpy:
30 .global memmove
31 .type   memmove,@function
32 memmove:
33         movi    a14, xthal_memcpy      // a14 safe to use regardless of whether caller
34                                         //   used call4 or call8 (can't have used call12)
35         jx      a14                     // let the Core HAL do the work
36