summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch')
-rw-r--r--x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch b/x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch
new file mode 100644
index 000000000000..43a16c0cbf49
--- /dev/null
+++ b/x11-misc/afbinit/files/afbinit-mmap-1.0.1.patch
@@ -0,0 +1,20 @@
+--- afbinit.c- 2006-01-31 15:21:31.000000000 +0000
++++ afbinit.c 2006-01-31 15:22:23.000000000 +0000
+@@ -236,7 +236,7 @@
+ /* MMAP the registers. */
+ uregs = mmap(0, 0x2000,
+ PROT_READ | PROT_WRITE,
+- MAP_PRIVATE,
++ MAP_SHARED,
+ afb_fd,
+ 0x04000000);
+ if (uregs == (void *)-1L) {
+@@ -246,7 +246,7 @@
+
+ kregs = mmap(0, 0x2000,
+ PROT_READ | PROT_WRITE,
+- MAP_PRIVATE,
++ MAP_SHARED,
+ afb_fd,
+ 0x0bc04000);
+ if (kregs == (void *)-1L) {