Brandon S Allbery KF8NH writes:
 > On Wed, 2002-04-24 at 10:41, Andrew Gallatin wrote:
 > > Maybe the argument isn't where you expect it to be, but is there.
 > > Can you make a test program which calls mmap2 with its 6th arg as
 > > something unique like 0xdeadbeef?  Then print out (in hex :) the trapframe
 > > from the linux prepsyscall routine & see if you can find the deadbeef.
 > 
 > My recollection is that beyond 5 arguments, a pointer to the remaining
 > ones is passed.  (But my recollection may be wrong and I don't wish to
 > subject myself to the source cesspool at the moment....)
 > 

I think that's how it used to work.  Apparently, they've changed it
recently and they now pass 6 args in registers.  Eg, in the linux
kernel sources, old_mmap() fetches its args via copy_from_user(),
whereas the newer sys_mmap2() doesn't.

Drew

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to