floppydma.S 736 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * linux/arch/arm/lib/floppydma.S
  3. *
  4. * Copyright (C) 1995, 1996 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/linkage.h>
  11. #include <asm/assembler.h>
  12. .text
  13. .global floppy_fiqin_end
  14. ENTRY(floppy_fiqin_start)
  15. subs r9, r9, #1
  16. ldrgtb r12, [r11, #-4]
  17. ldrleb r12, [r11], #0
  18. strb r12, [r10], #1
  19. subs pc, lr, #4
  20. floppy_fiqin_end:
  21. .global floppy_fiqout_end
  22. ENTRY(floppy_fiqout_start)
  23. subs r9, r9, #1
  24. ldrgeb r12, [r10], #1
  25. movlt r12, #0
  26. strleb r12, [r11], #0
  27. subles pc, lr, #4
  28. strb r12, [r11, #-4]
  29. subs pc, lr, #4
  30. floppy_fiqout_end: