linux/arch/metag/lib/clear_page.S
<<
>>
Prefs
   1        ! Copyright 2007,2008,2009 Imagination Technologies Ltd.
   2
   3#include <asm/page.h>
   4
   5        .text
   6        .global _clear_page
   7        .type   _clear_page,function
   8        !! D1Ar1 - page
   9_clear_page:
  10        MOV  TXRPT,#((PAGE_SIZE / 8) - 1)
  11        MOV  D0Re0,#0
  12        MOV  D1Re0,#0
  13$Lclear_page_loop:
  14        SETL [D1Ar1++],D0Re0,D1Re0
  15        BR   $Lclear_page_loop
  16        MOV  PC,D1RtP
  17        .size   _clear_page,.-_clear_page
  18