Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
awilliam
GitHub Repository: awilliam/linux-vfio
Path: blob/master/arch/avr32/mm/clear_page.S
10817 views
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
26
27