| /* SPDX-License-Identifier: GPL-2.0 */ |
| /* U3copy_to_user.S: UltraSparc-III optimized copy to userspace. |
| * Copyright (C) 1999, 2000, 2004 David S. Miller (davem@redhat.com) |
| .section __ex_table,"a";\ |
| .section __ex_table,"a";\ |
| #define FUNC_NAME U3copy_to_user |
| #define STORE(type,src,addr) type##a src, [addr] ASI_AIUS |
| #define STORE_BLK(src,addr) stda src, [addr] ASI_BLK_AIUS |
| /* Writing to %asi is _expensive_ so we hardcode it. |
| * Reading %asi to check for KERNEL_DS is comparatively |
| bne,pn %icc, raw_copy_in_user; \ |