summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-03-24 13:48:20 -0700
committerEric Anholt <eric@anholt.net>2008-03-24 13:48:20 -0700
commitc02ab432dd7058c700c35eecf6215daf5f262c51 (patch)
treebad1fe06e02db96d0850e6b20f0cf35041220d4f /src/i830_driver.c
parent552a1b824db31a234d7c5cb71057ed0e0ce64477 (diff)
Revert "Use mprotect on unbound AGP memory to attempt to catch use while unbound."
While I still like the idea, the mprotect calls themselves are failing on Linux and causing more trouble than they're worth. This reverts commit a1612b7728d4153499fe86b6713a13c8702cc7d9. Conflicts: src/i830_driver.c src/i830_memory.c
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index c2ddf454..50d98088 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -171,7 +171,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
-#include <sys/mman.h>
#include <errno.h>
#include "xf86.h"
@@ -697,15 +696,6 @@ I830MapMem(ScrnInfoPtr pScrn)
pI830->FbBase + pI830->LpRing->mem->offset;
}
- /* Mark the pages we haven't yet bound into AGP as inaccessible. */
- if (pI830->FbMapSize > pI830->stolen_size) {
- if (mprotect(pI830->FbBase + pI830->stolen_size,
- pI830->FbMapSize - pI830->stolen_size, PROT_NONE) != 0) {
- xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
- "Failed to mprotect unbound AGP: %s\n", strerror(errno));
- }
- }
-
return TRUE;
}