Merge branch 'pxa' into devel
[linux-2.6] / arch / arm / lib / floppydma.S
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
14                 .global floppy_fiqin_end
15 ENTRY(floppy_fiqin_start)
16                 subs    r9, r9, #1
17                 ldrgtb  r12, [r11, #-4]
18                 ldrleb  r12, [r11], #0
19                 strb    r12, [r10], #1
20                 subs    pc, lr, #4
21 floppy_fiqin_end:
22
23                 .global floppy_fiqout_end
24 ENTRY(floppy_fiqout_start)
25                 subs    r9, r9, #1
26                 ldrgeb  r12, [r10], #1
27                 movlt   r12, #0
28                 strleb  r12, [r11], #0
29                 subles  pc, lr, #4
30                 strb    r12, [r11, #-4]
31                 subs    pc, lr, #4
32 floppy_fiqout_end: