blob: 6698b83050dc2c4f1a1b3b34ec67287f97e2c4c1 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * linux/arch/arm/lib/floppydma.S
4 *
5 * Copyright (C) 1995, 1996 Russell King
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
7#include <linux/linkage.h>
8#include <asm/assembler.h>
9 .text
10
11 .global floppy_fiqin_end
12ENTRY(floppy_fiqin_start)
13 subs r9, r9, #1
Stefan Agnere44fc382019-02-18 00:57:38 +010014 ldrbgt r12, [r11, #-4]
15 ldrble r12, [r11], #0
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 strb r12, [r10], #1
17 subs pc, lr, #4
18floppy_fiqin_end:
19
20 .global floppy_fiqout_end
21ENTRY(floppy_fiqout_start)
22 subs r9, r9, #1
Stefan Agnere44fc382019-02-18 00:57:38 +010023 ldrbge r12, [r10], #1
Linus Torvalds1da177e2005-04-16 15:20:36 -070024 movlt r12, #0
Stefan Agnere44fc382019-02-18 00:57:38 +010025 strble r12, [r11], #0
26 subsle pc, lr, #4
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 strb r12, [r11, #-4]
28 subs pc, lr, #4
29floppy_fiqout_end: