blob: ce02de7b049347b99c7eed9ee7c7deceb41af895 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * arch/alpha/lib/clear_page.S
4 *
5 * Zero an entire page.
6 */
Al Viro00fc0e02016-01-11 09:51:29 -05007#include <asm/export.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 .text
9 .align 4
10 .global clear_page
11 .ent clear_page
12clear_page:
13 .prologue 0
14
15 lda $0,128
16 nop
17 unop
18 nop
19
201: stq $31,0($16)
21 stq $31,8($16)
22 stq $31,16($16)
23 stq $31,24($16)
24
25 stq $31,32($16)
26 stq $31,40($16)
27 stq $31,48($16)
28 subq $0,1,$0
29
30 stq $31,56($16)
31 addq $16,64,$16
32 unop
33 bne $0,1b
34
35 ret
36 nop
37 unop
38 nop
39
40 .end clear_page
Al Viro00fc0e02016-01-11 09:51:29 -050041 EXPORT_SYMBOL(clear_page)