Skip to content

Commit

Permalink
[MIPS] Use SYSVIPC_COMPAT to fix various problems on N32
Browse files Browse the repository at this point in the history
N32 SysV IPC system calls should use 32-bit compatible code.
arch/mips/kernel/linux32.c have similar compatible code for O32, but
ipc/compat.c seems more complete.  We can use it for both N32 and O32.

This patch should fix these problems (and other possible problems):

http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=1149188824.6986.6.camel%40diimka-laptop
http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=44C6B829.8050508%40caviumnetworks.com

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Dec 4, 2006
1 parent 9567772 commit 05e4396
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 562 deletions.
5 changes: 5 additions & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1940,6 +1940,11 @@ config COMPAT
depends on MIPS32_COMPAT
default y

config SYSVIPC_COMPAT
bool
depends on COMPAT && SYSVIPC
default y

config MIPS32_O32
bool "Kernel support for o32 binaries"
depends on MIPS32_COMPAT
Expand Down
Loading

0 comments on commit 05e4396

Please sign in to comment.