floppydma.S (590B)
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * linux/arch/arm/lib/floppydma.S 4 * 5 * Copyright (C) 1995, 1996 Russell King 6 */ 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 14 ldrbgt r12, [r11, #-4] 15 ldrble r12, [r11], #0 16 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 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 29floppy_fiqout_end: