Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2002 19:47:47 -0400 (EDT)
From:      Kenneth Culver <culverk@alpha.yumyumyum.org>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        FreeBSD-CURRENT List <freebsd-current@FreeBSD.ORG>, FreeBSD-CURRENT List <freebsd-current@FreeBSD.ORG>, <freebsd-hackers@FreeBSD.ORG>, Brandon S Allbery KF8NH <allbery@ece.cmu.edu>, Andrew Gallatin <gallatin@cs.duke.edu>
Subject:   Re: implementing linux mmap2 syscall
Message-ID:  <20020424194250.Y39769-100000@alpha.yumyumyum.org>
In-Reply-To: <20020424193252.S39698-100000@alpha.yumyumyum.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm actually still not seeing a match between what's in  truss, and what's
> in my printed-out args, but it seems to be working anyway...
>
Argh, it's not working again... It was working on an install of ms office,
but it won't work on some old windows game.. (winex) and it's still not
setting the last arg (or register properly):

truss output:

linux_mmap2(0x65430000,0x100000,0x3,0x11,0x9,0x6) = 1698889728
(0x65430000)

notice that the last arg is 0x6, that's the page offset...

what the kernel prints for the same call:

mmap2(0x65430000, 1048576, 3, 0x00000011, 9, 0)

notice that they both have all the same values until you get to the last
one... at which point the value is wrong... Apparently this only causes
problems on some windows programs that one may try to execute, and not on
others...

So, where can I force this to get set?

Ken


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020424194250.Y39769-100000>