blob: de68d3b343e30a47aaa3963ccf4f981b2e557598 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
15ENTRY(floppy_fiqin_start)
16 subs r9, r9, #1
Stefan Agnere44fc382019-02-18 00:57:38 +010017 ldrbgt r12, [r11, #-4]
18 ldrble r12, [r11], #0
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 strb r12, [r10], #1
20 subs pc, lr, #4
21floppy_fiqin_end:
22
23 .global floppy_fiqout_end
24ENTRY(floppy_fiqout_start)
25 subs r9, r9, #1
Stefan Agnere44fc382019-02-18 00:57:38 +010026 ldrbge r12, [r10], #1
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 movlt r12, #0
Stefan Agnere44fc382019-02-18 00:57:38 +010028 strble r12, [r11], #0
29 subsle pc, lr, #4
Linus Torvalds1da177e2005-04-16 15:20:36 -070030 strb r12, [r11, #-4]
31 subs pc, lr, #4
32floppy_fiqout_end: