Date: Tue, 13 Jan 1998 18:31:19 -0800 From: Amancio Hasty <hasty@rah.star-gate.com> To: Mike Smith <mike@smith.net.au> Cc: Stephen Hocking <shocking@mailbox.uq.edu.au>, multimedia@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: FreeBSD Quake page Message-ID: <199801140231.SAA01545@rah.star-gate.com> In-Reply-To: Your message of "Tue, 13 Jan 1998 11:56:31 %2B1030." <199801130126.LAA04334@word.smith.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Still no joy over here with Quake ][ :( These are the parameters that Quake ][ is calling mremap with: mremap error = 0 -- 1 0 2 0 3 0 4 0 All args are 0.... For this weird case, I am not even sure what to return. On a related vein , I booted linux and noticed that Quake ][ does not call mremap which probably means that something else is wrong with the linux emulation layer. Amancio > > > > syscall 163 is the linux system call mremap which we have not implemented. > > > > If anyone knows how to implement mremap please let me know. > > Heh. I finally managed to get a copy of the Linux kernel source where > I can look at it. > > mremap() is more or less what its name suggests; it allows you to > modify an existing mapping. > > u_long > mremap(caddr_t addr, u_long old_len, u_long new_len, u_long flags) > > There are basically two cases. > > - Shrink a mapping. (new_len < old_len) You can implement this as > munmap(addr + new_len, old_len - new_len). > > - Grow a mapping, moving disallowed. This requires changing map > details. I *think* I can see, in principle, how to do this, but it > would have to be done in the vm_mmap module rather than in the > linuxulator. > > John, can you comment on this? > > As a quick hack, you could try implementing the shrink case, and return > ENOMEM for the other cases. This *might* work, depending on the > consumer. > > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801140231.SAA01545>