Staging
v0.5.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: 13d428afc007fcfcd6deeb215618f54cf9c0cae6 authored by Linus Torvalds on 20 November 2008, 23:19:22 UTC
Linux 2.6.28-rc6
Tip revision: 13d428a
copy_page.S
/*
 * Copyright (C) 2004-2006 Atmel Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#include <linux/linkage.h>
#include <asm/page.h>

/*
 * copy_page
 *
 * r12		to (P1 address)
 * r11		from (P1 address)
 * r8-r10	scratch
 */
	.text
	.global copy_page
copy_page:
	sub	r10, r11, -(1 << PAGE_SHIFT)
	/* pref	r11[0] */
1:	/* pref	r11[8] */
	ld.d	r8, r11++
	st.d	r12++, r8
	cp	r11, r10
	brlo	1b
	mov	pc, lr
back to top