hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/x86/kernel/verify_cpu.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 *
34 * verify_cpu.S - Code for cpu long mode and SSE verification. This
....@@ -8,9 +9,6 @@
89 * Copyright (c) 2007 Eric Biederman (ebiederm@xmission.com)
910 * Copyright (c) 2007 Vivek Goyal (vgoyal@in.ibm.com)
1011 * 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.
1412 *
1513 * This is a common code for verification whether CPU supports
1614 * long mode and SSE or not. It is not called directly instead this
....@@ -33,7 +31,7 @@
3331 #include <asm/cpufeatures.h>
3432 #include <asm/msr-index.h>
3533
36
-ENTRY(verify_cpu)
34
+SYM_FUNC_START_LOCAL(verify_cpu)
3735 pushf # Save caller passed flags
3836 push $0 # Kill any dangerous flags
3937 popf
....@@ -134,9 +132,9 @@
134132 .Lverify_cpu_no_longmode:
135133 popf # Restore caller passed flags
136134 movl $1,%eax
137
- ret
135
+ RET
138136 .Lverify_cpu_sse_ok:
139137 popf # Restore caller passed flags
140138 xorl %eax, %eax
141
- ret
142
-ENDPROC(verify_cpu)
139
+ RET
140
+SYM_FUNC_END(verify_cpu)