PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/avr32/mm/copy_page.S

https://bitbucket.org/thekraven/iscream_thunderc-2.6.35
Assembly | 28 lines | 27 code | 1 blank | 0 comment | 0 complexity | bfc4c4c96f57f86a1c49c8f6675571f0 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1/*
 2 * Copyright (C) 2004-2006 Atmel Corporation
 3 *
 4 * This program is free software; you can redistribute it and/or modify
 5 * it under the terms of the GNU General Public License version 2 as
 6 * published by the Free Software Foundation.
 7 */
 8#include <linux/linkage.h>
 9#include <asm/page.h>
10
11/*
12 * copy_page
13 *
14 * r12		to (P1 address)
15 * r11		from (P1 address)
16 * r8-r10	scratch
17 */
18	.text
19	.global copy_page
20copy_page:
21	sub	r10, r11, -(1 << PAGE_SHIFT)
22	/* pref	r11[0] */
231:	/* pref	r11[8] */
24	ld.d	r8, r11++
25	st.d	r12++, r8
26	cp	r11, r10
27	brlo	1b
28	mov	pc, lr