summaryrefslogtreecommitdiff
path: root/arch/x86_64/lib/clear_page.S
blob: 43d9fa136180f7376d6e45e0803fdd290c3a3ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * Zero a page. 	
 * rdi	page
 */			
	.globl clear_page
	.p2align 4
clear_page:
	movl $4096/8,%ecx
	xorl %eax,%eax
	rep 
	stosq
	ret