xserver/hw/xfree86/os-support/linux/int10
Egbert Eich 38e0a542fc int10: Do an mprotect(..,PROT_EXEC) on shmat()ed memory ranges.
When the linux kernel sets the NX bit vm86 segfaults when it tries to execute
code in memory that is not marked EXEC. Such code gets called whenever
we return from a VBIOS call to signal the calling program that the call
is actually finished and that we are not trapping for other reasons (like
IO accesses).
Use mprotect(2) to set these memory ranges PROT_EXEC.
(cherry picked from commit a9e20306fb)
2008-12-16 14:04:30 -05:00
..
vm86 Death to RCS tags. 2007-06-29 14:06:52 -04:00
linux.c int10: Do an mprotect(..,PROT_EXEC) on shmat()ed memory ranges. 2008-12-16 14:04:30 -05:00