mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-16 09:34:22 +08:00
x86: use long instead of int.
Do not refer to the processor word-size with int, as it won't work with x86_64. Use long instead. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
8b0a8aaf05
commit
1dc186e82c
@ -62,7 +62,7 @@ extern struct movsl_mask {
|
||||
__chk_user_ptr(addr); \
|
||||
asm("add %3,%1 ; sbb %0,%0; cmp %1,%4; sbb $0,%0" \
|
||||
:"=&r" (flag), "=r" (roksum) \
|
||||
:"1" (addr), "g" ((int)(size)), \
|
||||
:"1" (addr), "g" ((long)(size)), \
|
||||
"rm" (current_thread_info()->addr_limit.seg)); \
|
||||
flag; \
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user