.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* ----------------------------------------------------------------------- * |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 1991, 1992 Linus Torvalds |
---|
4 | 5 | * 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. |
---|
8 | 6 | * |
---|
9 | 7 | * ----------------------------------------------------------------------- */ |
---|
10 | 8 | |
---|
.. | .. |
---|
17 | 15 | .code16 |
---|
18 | 16 | .text |
---|
19 | 17 | |
---|
20 | | -GLOBAL(memcpy) |
---|
| 18 | +SYM_FUNC_START_NOALIGN(memcpy) |
---|
21 | 19 | pushw %si |
---|
22 | 20 | pushw %di |
---|
23 | 21 | movw %ax, %di |
---|
.. | .. |
---|
31 | 29 | popw %di |
---|
32 | 30 | popw %si |
---|
33 | 31 | retl |
---|
34 | | -ENDPROC(memcpy) |
---|
| 32 | +SYM_FUNC_END(memcpy) |
---|
35 | 33 | |
---|
36 | | -GLOBAL(memset) |
---|
| 34 | +SYM_FUNC_START_NOALIGN(memset) |
---|
37 | 35 | pushw %di |
---|
38 | 36 | movw %ax, %di |
---|
39 | 37 | movzbl %dl, %eax |
---|
.. | .. |
---|
46 | 44 | rep; stosb |
---|
47 | 45 | popw %di |
---|
48 | 46 | retl |
---|
49 | | -ENDPROC(memset) |
---|
| 47 | +SYM_FUNC_END(memset) |
---|
50 | 48 | |
---|
51 | | -GLOBAL(copy_from_fs) |
---|
| 49 | +SYM_FUNC_START_NOALIGN(copy_from_fs) |
---|
52 | 50 | pushw %ds |
---|
53 | 51 | pushw %fs |
---|
54 | 52 | popw %ds |
---|
55 | 53 | calll memcpy |
---|
56 | 54 | popw %ds |
---|
57 | 55 | retl |
---|
58 | | -ENDPROC(copy_from_fs) |
---|
| 56 | +SYM_FUNC_END(copy_from_fs) |
---|
59 | 57 | |
---|
60 | | -GLOBAL(copy_to_fs) |
---|
| 58 | +SYM_FUNC_START_NOALIGN(copy_to_fs) |
---|
61 | 59 | pushw %es |
---|
62 | 60 | pushw %fs |
---|
63 | 61 | popw %es |
---|
64 | 62 | calll memcpy |
---|
65 | 63 | popw %es |
---|
66 | 64 | retl |
---|
67 | | -ENDPROC(copy_to_fs) |
---|
| 65 | +SYM_FUNC_END(copy_to_fs) |
---|