| .. | .. |
|---|
| 1 | | -/* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or |
|---|
| 3 | | - * modify it under the terms of the GNU General Public License |
|---|
| 4 | | - * as published by the Free Software Foundation; version 2 |
|---|
| 5 | | - * of the License. |
|---|
| 6 | | - * |
|---|
| 7 | | - */ |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 8 | 2 | #include <linux/linkage.h> |
|---|
| 9 | 3 | #include <asm/percpu.h> |
|---|
| 10 | 4 | |
|---|
| .. | .. |
|---|
| 19 | 13 | * %rcx : high 64 bits of new value |
|---|
| 20 | 14 | * %al : Operation successful |
|---|
| 21 | 15 | */ |
|---|
| 22 | | -ENTRY(this_cpu_cmpxchg16b_emu) |
|---|
| 16 | +SYM_FUNC_START(this_cpu_cmpxchg16b_emu) |
|---|
| 23 | 17 | |
|---|
| 24 | 18 | # |
|---|
| 25 | 19 | # Emulate 'cmpxchg16b %gs:(%rsi)' except we return the result in %al not |
|---|
| .. | .. |
|---|
| 43 | 37 | |
|---|
| 44 | 38 | popfq |
|---|
| 45 | 39 | mov $1, %al |
|---|
| 46 | | - ret |
|---|
| 40 | + RET |
|---|
| 47 | 41 | |
|---|
| 48 | 42 | .Lnot_same: |
|---|
| 49 | 43 | popfq |
|---|
| 50 | 44 | xor %al,%al |
|---|
| 51 | | - ret |
|---|
| 45 | + RET |
|---|
| 52 | 46 | |
|---|
| 53 | | -ENDPROC(this_cpu_cmpxchg16b_emu) |
|---|
| 47 | +SYM_FUNC_END(this_cpu_cmpxchg16b_emu) |
|---|