Commit | Line | Data |
---|---|---|
5f97f7f9 HS |
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 | ||
9 | #include <linux/linkage.h> | |
10 | #include <asm/page.h> | |
11 | ||
12 | /* | |
13 | * clear_page | |
14 | * r12: P1 address (to) | |
15 | */ | |
16 | .text | |
17 | .global clear_page | |
18 | clear_page: | |
19 | sub r9, r12, -PAGE_SIZE | |
20 | mov r10, 0 | |
21 | mov r11, 0 | |
22 | 0: st.d r12++, r10 | |
23 | cp r12, r9 | |
24 | brne 0b | |
25 | mov pc, lr |