[MPlayer-dev-eng] Re: amd64 -sws 0 fix (iow: playing with NX bit)

Alex Beregszaszi alex at fsn.hu
Fri Jan 21 21:40:34 CET 2005

Organization: Free Software Network (http://www.fsn.hu/)
X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; powerpc-unknown-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


> > trivial diff to disable NX bit via mprotect().
> Very nice ! That's exactly what I was looking for.
> But your code has a small problem. The pointer you pass to mprotect
> is not aligned on a PAGESIZE (which is required by mprotect).

What about aligning the funnycode stuff ? so no non-appropriate part of
the memory would be set to exec enable

Alex Beregszaszi 			e-mail: alex at fsn.hu
Free Software Network			cell: +36 70 3144424

More information about the MPlayer-dev-eng mailing list