hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/x86/boot/pmjump.S
....@@ -1,10 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* ----------------------------------------------------------------------- *
23 *
34 * Copyright (C) 1991, 1992 Linus Torvalds
45 * Copyright 2007 rPath, Inc. - All Rights Reserved
5
- *
6
- * This file is part of the Linux kernel, and is made available under
7
- * the terms of the GNU General Public License version 2.
86 *
97 * ----------------------------------------------------------------------- */
108
....@@ -23,7 +21,7 @@
2321 /*
2422 * void protected_mode_jump(u32 entrypoint, u32 bootparams);
2523 */
26
-GLOBAL(protected_mode_jump)
24
+SYM_FUNC_START_NOALIGN(protected_mode_jump)
2725 movl %edx, %esi # Pointer to boot_params table
2826
2927 xorl %ebx, %ebx
....@@ -42,13 +40,13 @@
4240
4341 # Transition to 32-bit mode
4442 .byte 0x66, 0xea # ljmpl opcode
45
-2: .long in_pm32 # offset
43
+2: .long .Lin_pm32 # offset
4644 .word __BOOT_CS # segment
47
-ENDPROC(protected_mode_jump)
45
+SYM_FUNC_END(protected_mode_jump)
4846
4947 .code32
5048 .section ".text32","ax"
51
-GLOBAL(in_pm32)
49
+SYM_FUNC_START_LOCAL_NOALIGN(.Lin_pm32)
5250 # Set up data segments for flat 32-bit mode
5351 movl %ecx, %ds
5452 movl %ecx, %es
....@@ -74,4 +72,4 @@
7472 lldt %cx
7573
7674 jmpl *%eax # Jump to the 32-bit entrypoint
77
-ENDPROC(in_pm32)
75
+SYM_FUNC_END(.Lin_pm32)