2 * No-op functions that can be safely copied.
4 * SPDX-License-Identifier: GPL-2.0-or-later
9 static const char nop_func
[] = {
10 #if defined(__aarch64__)
11 0xc0, 0x03, 0x5f, 0xd6, /* ret */
12 #elif defined(__alpha__)
13 0x01, 0x80, 0xFA, 0x6B, /* ret */
14 #elif defined(__arm__)
15 0x1e, 0xff, 0x2f, 0xe1, /* bx lr */
16 #elif defined(__riscv)
17 0x67, 0x80, 0x00, 0x00, /* ret */
18 #elif defined(__s390__)
19 0x07, 0xfe, /* br %r14 */
20 #elif defined(__i386__) || defined(__x86_64__)