1
2
3
4
5
6
7 #include <linux/linkage.h>
8 #include <asm/assembler.h>
9 .text
10
11 .global floppy_fiqin_end
12 ENTRY(floppy_fiqin_start)
13 subs r9, r9, #1
14 ldrbgt r12, [r11, #-4]
15 ldrble r12, [r11], #0
16 strb r12, [r10], #1
17 subs pc, lr, #4
18 floppy_fiqin_end:
19
20 .global floppy_fiqout_end
21 ENTRY(floppy_fiqout_start)
22 subs r9, r9, #1
23 ldrbge r12, [r10], #1
24 movlt r12, #0
25 strble r12, [r11], #0
26 subsle pc, lr, #4
27 strb r12, [r11, #-4]
28 subs pc, lr, #4
29 floppy_fiqout_end: