repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'for-linus-20190706' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git]
/
arch
/
arm64
/
lib
/
clear_page.S
blob
78a9ef66288ae6cf6195d40906c7df2cfead1474
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
/*
3
* Copyright (C) 2012 ARM Ltd.
4
*/
5
6
#include <linux/linkage.h>
7
#include <linux/const.h>
8
#include <asm/assembler.h>
9
#include <asm/page.h>
10
11
/*
12
* Clear page @dest
13
*
14
* Parameters:
15
* x0 - dest
16
*/
17
ENTRY(clear_page)
18
mrs x1, dczid_el0
19
and w1, w1, #0xf
20
mov x2, #4
21
lsl x1, x2, x1
22
23
1: dc zva, x0
24
add x0, x0, x1
25
tst x0, #(PAGE_SIZE - 1)
26
b.ne 1b
27
ret
28
ENDPROC(clear_page)
29
EXPORT_SYMBOL(clear_page)