xref: /openbmc/linux/arch/alpha/lib/clear_page.S (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */
21da177e4SLinus Torvalds/*
31da177e4SLinus Torvalds * arch/alpha/lib/clear_page.S
41da177e4SLinus Torvalds *
51da177e4SLinus Torvalds * Zero an entire page.
61da177e4SLinus Torvalds */
7*f3c78e94SMasahiro Yamada#include <linux/export.h>
81da177e4SLinus Torvalds	.text
91da177e4SLinus Torvalds	.align 4
101da177e4SLinus Torvalds	.global clear_page
111da177e4SLinus Torvalds	.ent clear_page
121da177e4SLinus Torvaldsclear_page:
131da177e4SLinus Torvalds	.prologue 0
141da177e4SLinus Torvalds
151da177e4SLinus Torvalds	lda	$0,128
161da177e4SLinus Torvalds	nop
171da177e4SLinus Torvalds	unop
181da177e4SLinus Torvalds	nop
191da177e4SLinus Torvalds
201da177e4SLinus Torvalds1:	stq	$31,0($16)
211da177e4SLinus Torvalds	stq	$31,8($16)
221da177e4SLinus Torvalds	stq	$31,16($16)
231da177e4SLinus Torvalds	stq	$31,24($16)
241da177e4SLinus Torvalds
251da177e4SLinus Torvalds	stq	$31,32($16)
261da177e4SLinus Torvalds	stq	$31,40($16)
271da177e4SLinus Torvalds	stq	$31,48($16)
281da177e4SLinus Torvalds	subq	$0,1,$0
291da177e4SLinus Torvalds
301da177e4SLinus Torvalds	stq	$31,56($16)
311da177e4SLinus Torvalds	addq	$16,64,$16
321da177e4SLinus Torvalds	unop
331da177e4SLinus Torvalds	bne	$0,1b
341da177e4SLinus Torvalds
351da177e4SLinus Torvalds	ret
361da177e4SLinus Torvalds	nop
371da177e4SLinus Torvalds	unop
381da177e4SLinus Torvalds	nop
391da177e4SLinus Torvalds
401da177e4SLinus Torvalds	.end clear_page
4100fc0e0dSAl Viro	EXPORT_SYMBOL(clear_page)
42