OSDN Git Service

[mips64] Fix ipc syscalls
authorNikola Veljkovic <Nikola.Veljkovic@imgtec.com>
Fri, 9 Sep 2016 00:01:01 +0000 (02:01 +0200)
committerNikola Veljkovic <Nikola.Veljkovic@imgtec.com>
Fri, 9 Sep 2016 10:24:04 +0000 (12:24 +0200)
commit23f088cd74b3c1da7aed07e5984970d38c85cd03
tree042cd074ec38ad4950ab734288728900f3081094
parent572791e027a0dd3fdcba720f5e0c390d5aaef21d
[mips64] Fix ipc syscalls

Mips defines CONFIG_ARCH_WANT_IPC_PARSE_VERSION for both 32 and 64-bit.
See arch/mips/Kconfig. Other supported arches do it for 32-bit only.
This translates in having to pass IPC_64 flag for mips32 and mips64.
We use __mips__ to pass the flag, which is also defined for both 32 and
64-bit.

Change fixes bionic smoke tests (sys_msg, sys_sem, sys_shm) for mips64.

Test: bionic-unit-tests --gtest_filter="sys_*.smoke"
Change-Id: I918e4ffafd2002bb3e62ee252406746778100031
libc/bionic/sys_msg.cpp
libc/bionic/sys_sem.cpp
libc/bionic/sys_shm.cpp