clear_page.S 499 B

1234567891011121314151617181920212223242526
  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. #include <linux/linkage.h>
  9. #include <asm/page.h>
  10. /*
  11. * clear_page
  12. * r12: P1 address (to)
  13. */
  14. .text
  15. .global clear_page
  16. clear_page:
  17. sub r9, r12, -PAGE_SIZE
  18. mov r10, 0
  19. mov r11, 0
  20. 0: st.d r12++, r10
  21. cp r12, r9
  22. brne 0b
  23. mov pc, lr