18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/arch/arm/lib/floppydma.S 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 1995, 1996 Russell King 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#include <linux/linkage.h> 88c2ecf20Sopenharmony_ci#include <asm/assembler.h> 98c2ecf20Sopenharmony_ci .text 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci .global floppy_fiqin_end 128c2ecf20Sopenharmony_ciENTRY(floppy_fiqin_start) 138c2ecf20Sopenharmony_ci subs r9, r9, #1 148c2ecf20Sopenharmony_ci ldrbgt r12, [r11, #-4] 158c2ecf20Sopenharmony_ci ldrble r12, [r11], #0 168c2ecf20Sopenharmony_ci strb r12, [r10], #1 178c2ecf20Sopenharmony_ci subs pc, lr, #4 188c2ecf20Sopenharmony_cifloppy_fiqin_end: 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci .global floppy_fiqout_end 218c2ecf20Sopenharmony_ciENTRY(floppy_fiqout_start) 228c2ecf20Sopenharmony_ci subs r9, r9, #1 238c2ecf20Sopenharmony_ci ldrbge r12, [r10], #1 248c2ecf20Sopenharmony_ci movlt r12, #0 258c2ecf20Sopenharmony_ci strble r12, [r11], #0 268c2ecf20Sopenharmony_ci subsle pc, lr, #4 278c2ecf20Sopenharmony_ci strb r12, [r11, #-4] 288c2ecf20Sopenharmony_ci subs pc, lr, #4 298c2ecf20Sopenharmony_cifloppy_fiqout_end: 30