| /* SPDX-License-Identifier: GPL-2.0 */ |
| /* GENpatch.S: Patch Ultra-I routines with generic variant. |
| * Copyright (C) 2007 David S. Miller <davem@davemloft.net> |
| #define BRANCH_ALWAYS 0x10680000 |
| #define GEN_DO_PATCH(OLD, NEW) \ |
| sethi %hi(BRANCH_ALWAYS), %g3; \ |
| or %g3, %lo(BRANCH_ALWAYS), %g3; \ |
| .globl generic_patch_copyops |
| .type generic_patch_copyops,#function |
| GEN_DO_PATCH(memcpy, GENmemcpy) |
| GEN_DO_PATCH(raw_copy_from_user, GENcopy_from_user) |
| GEN_DO_PATCH(raw_copy_to_user, GENcopy_to_user) |
| .size generic_patch_copyops,.-generic_patch_copyops |