summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_sysent.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-03-28 21:43:27 +0000
committerbms <bms@FreeBSD.org>2004-03-28 21:43:27 +0000
commit54410035eae95a97fb17584b66d0b444cc2cc12e (patch)
tree14512ddab3969c97af31189ba5109ee0075d20e8 /sys/i386/linux/linux_sysent.c
parent3709170070ae609614e96ef892496a543fb91483 (diff)
downloadFreeBSD-src-54410035eae95a97fb17584b66d0b444cc2cc12e.zip
FreeBSD-src-54410035eae95a97fb17584b66d0b444cc2cc12e.tar.gz
Use the BSD madvise() syscall implementation for Linux binary emulation,
instead of treating it as an unimplemented syscall. This appears to make StarOffice 7.0 Linux binaries work according to submitter; also tested with nvidia driver by submitter. Submitted by: Matthias Schuendehuette
Diffstat (limited to 'sys/i386/linux/linux_sysent.c')
-rw-r--r--sys/i386/linux/linux_sysent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_sysent.c b/sys/i386/linux/linux_sysent.c
index 7cd6b60..a9ba557 100644
--- a/sys/i386/linux/linux_sysent.c
+++ b/sys/i386/linux/linux_sysent.c
@@ -236,7 +236,7 @@ struct sysent linux_sysent[] = {
{ AS(linux_setfsgid_args), (sy_call_t *)linux_setfsgid }, /* 216 = linux_setfsgid */
{ AS(linux_pivot_root_args), (sy_call_t *)linux_pivot_root }, /* 217 = linux_pivot_root */
{ AS(linux_mincore_args), (sy_call_t *)linux_mincore }, /* 218 = linux_mincore */
- { 0, (sy_call_t *)linux_madvise }, /* 219 = linux_madvise */
+ { SYF_MPSAFE | AS(madvise_args), (sy_call_t *)madvise }, /* 219 = madvise */
{ AS(linux_getdents64_args), (sy_call_t *)linux_getdents64 }, /* 220 = linux_getdents64 */
{ AS(linux_fcntl64_args), (sy_call_t *)linux_fcntl64 }, /* 221 = linux_fcntl64 */
{ 0, (sy_call_t *)nosys }, /* 222 = */
OpenPOWER on IntegriCloud