Skip to content

Commit 06bc0f4

Browse files
committed
Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86/build changes from Ingo Molnar: "Misc smaller improvements" * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86, boot: Move intcall() to the .inittext section x86, boot: Use .code16 instead of .code16gcc x86, sparse: Do not force removal of __user when calling copy_to/from_user_nocheck()
2 parents 4cd4156 + 6f34152 commit 06bc0f4

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

arch/x86/boot/bioscall.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -----------------------------------------------------------------------
22
*
3-
* Copyright 2009 Intel Corporation; author H. Peter Anvin
3+
* Copyright 2009-2014 Intel Corporation; author H. Peter Anvin
44
*
55
* This file is part of the Linux kernel, and is made available under
66
* the terms of the GNU General Public License version 2 or (at your
@@ -13,8 +13,8 @@
1313
* touching registers they shouldn't be.
1414
*/
1515

16-
.code16gcc
17-
.text
16+
.code16
17+
.section ".inittext","ax"
1818
.globl intcall
1919
.type intcall, @function
2020
intcall:

arch/x86/boot/copy.S

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Memory copy routines
1515
*/
1616

17-
.code16gcc
17+
.code16
1818
.text
1919

2020
GLOBAL(memcpy)
@@ -30,7 +30,7 @@ GLOBAL(memcpy)
3030
rep; movsb
3131
popw %di
3232
popw %si
33-
ret
33+
retl
3434
ENDPROC(memcpy)
3535

3636
GLOBAL(memset)
@@ -45,43 +45,43 @@ GLOBAL(memset)
4545
andw $3, %cx
4646
rep; stosb
4747
popw %di
48-
ret
48+
retl
4949
ENDPROC(memset)
5050

5151
GLOBAL(copy_from_fs)
5252
pushw %ds
5353
pushw %fs
5454
popw %ds
55-
call memcpy
55+
calll memcpy
5656
popw %ds
57-
ret
57+
retl
5858
ENDPROC(copy_from_fs)
5959

6060
GLOBAL(copy_to_fs)
6161
pushw %es
6262
pushw %fs
6363
popw %es
64-
call memcpy
64+
calll memcpy
6565
popw %es
66-
ret
66+
retl
6767
ENDPROC(copy_to_fs)
6868

6969
#if 0 /* Not currently used, but can be enabled as needed */
7070
GLOBAL(copy_from_gs)
7171
pushw %ds
7272
pushw %gs
7373
popw %ds
74-
call memcpy
74+
calll memcpy
7575
popw %ds
76-
ret
76+
retl
7777
ENDPROC(copy_from_gs)
7878

7979
GLOBAL(copy_to_gs)
8080
pushw %es
8181
pushw %gs
8282
popw %es
83-
call memcpy
83+
calll memcpy
8484
popw %es
85-
ret
85+
retl
8686
ENDPROC(copy_to_gs)
8787
#endif

arch/x86/include/asm/uaccess_64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
204204
static __must_check __always_inline int
205205
__copy_from_user_inatomic(void *dst, const void __user *src, unsigned size)
206206
{
207-
return __copy_from_user_nocheck(dst, (__force const void *)src, size);
207+
return __copy_from_user_nocheck(dst, src, size);
208208
}
209209

210210
static __must_check __always_inline int
211211
__copy_to_user_inatomic(void __user *dst, const void *src, unsigned size)
212212
{
213-
return __copy_to_user_nocheck((__force void *)dst, src, size);
213+
return __copy_to_user_nocheck(dst, src, size);
214214
}
215215

216216
extern long __copy_user_nocache(void *dst, const void __user *src,

0 commit comments

Comments
 (0)