mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 13:05:03 +08:00
9330cff1d4
[ Upstream commitd6fbd26fb8
] sparc has the wrong compat version of recv() and recvfrom() for both the direct syscalls and socketcall(). The direct syscalls just need to use the compat version. For socketcall, the same thing could be done, but it seems better to completely remove the custom assembler code for it and just use the same implementation that everyone else has. Fixes:1dacc76d00
("net/compat/wext: send different messages to compat tasks") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
21 lines
476 B
ArmAsm
21 lines
476 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* sys32.S: I-cache tricks for 32-bit compatibility layer simple
|
|
* conversions.
|
|
*
|
|
* Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
|
|
* Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
|
|
*/
|
|
|
|
#include <asm/errno.h>
|
|
|
|
/* NOTE: call as jump breaks return stack, we have to avoid that */
|
|
|
|
.text
|
|
|
|
.globl sys32_mmap2
|
|
sys32_mmap2:
|
|
sethi %hi(sys_mmap), %g1
|
|
jmpl %g1 + %lo(sys_mmap), %g0
|
|
sllx %o5, 12, %o5
|