| .. | .. |
|---|
| 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 | |
|---|
| 9 | 3 | #include <linux/linkage.h> |
|---|
| 10 | 4 | #include <asm/export.h> |
|---|
| .. | .. |
|---|
| 19 | 13 | * %ebx : low 32 bits of new value |
|---|
| 20 | 14 | * %ecx : high 32 bits of new value |
|---|
| 21 | 15 | */ |
|---|
| 22 | | -ENTRY(cmpxchg8b_emu) |
|---|
| 16 | +SYM_FUNC_START(cmpxchg8b_emu) |
|---|
| 23 | 17 | |
|---|
| 24 | 18 | # |
|---|
| 25 | 19 | # Emulate 'cmpxchg8b (%esi)' on UP except we don't |
|---|
| .. | .. |
|---|
| 38 | 32 | movl %ecx, 4(%esi) |
|---|
| 39 | 33 | |
|---|
| 40 | 34 | popfl |
|---|
| 41 | | - ret |
|---|
| 35 | + RET |
|---|
| 42 | 36 | |
|---|
| 43 | 37 | .Lnot_same: |
|---|
| 44 | 38 | movl (%esi), %eax |
|---|
| .. | .. |
|---|
| 46 | 40 | movl 4(%esi), %edx |
|---|
| 47 | 41 | |
|---|
| 48 | 42 | popfl |
|---|
| 49 | | - ret |
|---|
| 43 | + RET |
|---|
| 50 | 44 | |
|---|
| 51 | | -ENDPROC(cmpxchg8b_emu) |
|---|
| 45 | +SYM_FUNC_END(cmpxchg8b_emu) |
|---|
| 52 | 46 | EXPORT_SYMBOL(cmpxchg8b_emu) |
|---|