[PATCH] powerpc: Implement support for setting little-endian mode via prctl
[linux-2.6] / arch / alpha / lib / clear_page.S
1 /*
2  * arch/alpha/lib/clear_page.S
3  *
4  * Zero an entire page.
5  */
6
7         .text
8         .align 4
9         .global clear_page
10         .ent clear_page
11 clear_page:
12         .prologue 0
13
14         lda     $0,128
15         nop
16         unop
17         nop
18
19 1:      stq     $31,0($16)
20         stq     $31,8($16)
21         stq     $31,16($16)
22         stq     $31,24($16)
23
24         stq     $31,32($16)
25         stq     $31,40($16)
26         stq     $31,48($16)
27         subq    $0,1,$0
28
29         stq     $31,56($16)
30         addq    $16,64,$16
31         unop
32         bne     $0,1b
33
34         ret
35         nop
36         unop
37         nop
38
39         .end clear_page