License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / metag / lib / copy_page.S
1 /* SPDX-License-Identifier: GPL-2.0 */
2         ! Copyright 2007,2008 Imagination Technologies Ltd.
3
4 #include <asm/page.h>
5
6         .text
7         .global _copy_page
8         .type   _copy_page,function
9         !! D1Ar1 - to
10         !! D0Ar2 - from
11 _copy_page:
12         MOV  D0FrT,#PAGE_SIZE
13 $Lcopy_page_loop:
14         GETL D0Re0,D1Re0,[D0Ar2++]
15         GETL D0Ar6,D1Ar5,[D0Ar2++]
16         SETL [D1Ar1++],D0Re0,D1Re0
17         SETL [D1Ar1++],D0Ar6,D1Ar5
18         SUBS D0FrT,D0FrT,#16
19         BNZ  $Lcopy_page_loop
20         MOV  PC,D1RtP
21         .size   _copy_page,.-_copy_page