hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/x86/boot/copy.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
....@@ -17,7 +15,7 @@
1715 .code16
1816 .text
1917
20
-GLOBAL(memcpy)
18
+SYM_FUNC_START_NOALIGN(memcpy)
2119 pushw %si
2220 pushw %di
2321 movw %ax, %di
....@@ -31,9 +29,9 @@
3129 popw %di
3230 popw %si
3331 retl
34
-ENDPROC(memcpy)
32
+SYM_FUNC_END(memcpy)
3533
36
-GLOBAL(memset)
34
+SYM_FUNC_START_NOALIGN(memset)
3735 pushw %di
3836 movw %ax, %di
3937 movzbl %dl, %eax
....@@ -46,22 +44,22 @@
4644 rep; stosb
4745 popw %di
4846 retl
49
-ENDPROC(memset)
47
+SYM_FUNC_END(memset)
5048
51
-GLOBAL(copy_from_fs)
49
+SYM_FUNC_START_NOALIGN(copy_from_fs)
5250 pushw %ds
5351 pushw %fs
5452 popw %ds
5553 calll memcpy
5654 popw %ds
5755 retl
58
-ENDPROC(copy_from_fs)
56
+SYM_FUNC_END(copy_from_fs)
5957
60
-GLOBAL(copy_to_fs)
58
+SYM_FUNC_START_NOALIGN(copy_to_fs)
6159 pushw %es
6260 pushw %fs
6361 popw %es
6462 calll memcpy
6563 popw %es
6664 retl
67
-ENDPROC(copy_to_fs)
65
+SYM_FUNC_END(copy_to_fs)