Full support for Ginger Console
[linux-ginger.git] / arch / alpha / lib / clear_page.S
bloba221ae266e29098ab55cd72fb42ede2ff11588bf
1 /*
2  * arch/alpha/lib/clear_page.S
3  *
4  * Zero an entire page.
5  */
7         .text
8         .align 4
9         .global clear_page
10         .ent clear_page
11 clear_page:
12         .prologue 0
14         lda     $0,128
15         nop
16         unop
17         nop
19 1:      stq     $31,0($16)
20         stq     $31,8($16)
21         stq     $31,16($16)
22         stq     $31,24($16)
24         stq     $31,32($16)
25         stq     $31,40($16)
26         stq     $31,48($16)
27         subq    $0,1,$0
29         stq     $31,56($16)
30         addq    $16,64,$16
31         unop
32         bne     $0,1b
34         ret
35         nop
36         unop
37         nop
39         .end clear_page