Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * linux/arch/arm/lib/floppydma.S |
| 4 | * |
| 5 | * Copyright (C) 1995, 1996 Russell King |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Stefan Agner | e44fc38 | 2019-02-18 00:57:38 +0100 | [diff] [blame] | 14 | ldrbgt r12, [r11, #-4] |
| 15 | ldrble r12, [r11], #0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
Stefan Agner | e44fc38 | 2019-02-18 00:57:38 +0100 | [diff] [blame] | 23 | ldrbge r12, [r10], #1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | movlt r12, #0 |
Stefan Agner | e44fc38 | 2019-02-18 00:57:38 +0100 | [diff] [blame] | 25 | strble r12, [r11], #0 |
| 26 | subsle pc, lr, #4 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | strb r12, [r11, #-4] |
| 28 | subs pc, lr, #4 |
| 29 | floppy_fiqout_end: |