.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * |
---|
3 | 4 | * verify_cpu.S - Code for cpu long mode and SSE verification. This |
---|
.. | .. |
---|
8 | 9 | * Copyright (c) 2007 Eric Biederman (ebiederm@xmission.com) |
---|
9 | 10 | * Copyright (c) 2007 Vivek Goyal (vgoyal@in.ibm.com) |
---|
10 | 11 | * Copyright (c) 2010 Kees Cook (kees.cook@canonical.com) |
---|
11 | | - * |
---|
12 | | - * This source code is licensed under the GNU General Public License, |
---|
13 | | - * Version 2. See the file COPYING for more details. |
---|
14 | 12 | * |
---|
15 | 13 | * This is a common code for verification whether CPU supports |
---|
16 | 14 | * long mode and SSE or not. It is not called directly instead this |
---|
.. | .. |
---|
33 | 31 | #include <asm/cpufeatures.h> |
---|
34 | 32 | #include <asm/msr-index.h> |
---|
35 | 33 | |
---|
36 | | -ENTRY(verify_cpu) |
---|
| 34 | +SYM_FUNC_START_LOCAL(verify_cpu) |
---|
37 | 35 | pushf # Save caller passed flags |
---|
38 | 36 | push $0 # Kill any dangerous flags |
---|
39 | 37 | popf |
---|
.. | .. |
---|
134 | 132 | .Lverify_cpu_no_longmode: |
---|
135 | 133 | popf # Restore caller passed flags |
---|
136 | 134 | movl $1,%eax |
---|
137 | | - ret |
---|
| 135 | + RET |
---|
138 | 136 | .Lverify_cpu_sse_ok: |
---|
139 | 137 | popf # Restore caller passed flags |
---|
140 | 138 | xorl %eax, %eax |
---|
141 | | - ret |
---|
142 | | -ENDPROC(verify_cpu) |
---|
| 139 | + RET |
---|
| 140 | +SYM_FUNC_END(verify_cpu) |
---|