~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/avr32/mm/clear_page.S

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2004-2006 Atmel Corporation
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License version 2 as
 
6
 * published by the Free Software Foundation.
 
7
 */
 
8
 
 
9
#include <linux/linkage.h>
 
10
#include <asm/page.h>
 
11
 
 
12
/*
 
13
 * clear_page
 
14
 * r12: P1 address (to)
 
15
 */
 
16
        .text
 
17
        .global clear_page
 
18
clear_page:
 
19
        sub     r9, r12, -PAGE_SIZE
 
20
        mov     r10, 0
 
21
        mov     r11, 0
 
22
0:      st.d    r12++, r10
 
23
        cp      r12, r9
 
24
        brne    0b
 
25
        mov     pc, lr