summaryrefslogtreecommitdiff
path: root/debian/patches/0008-fu_reverse.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0008-fu_reverse.patch')
-rw-r--r--debian/patches/0008-fu_reverse.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/0008-fu_reverse.patch b/debian/patches/0008-fu_reverse.patch
new file mode 100644
index 0000000..cff79bf
--- /dev/null
+++ b/debian/patches/0008-fu_reverse.patch
@@ -0,0 +1,34 @@
+From a38d2f72eba677da339e86a8b8a72dd050660e29 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Wed, 8 Apr 2015 14:21:34 +0200
+Subject: [PATCH gnumach 8/8] fu_reverse
+
+---
+ ipc/ipc_space.h | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/ipc/ipc_space.h b/ipc/ipc_space.h
+index 98e55e2..e66ad0b 100644
+--- a/ipc/ipc_space.h
++++ b/ipc/ipc_space.h
+@@ -42,6 +42,7 @@
+ #include <mach/boolean.h>
+ #include <mach/kern_return.h>
+ #include <mach/mach_types.h>
++#include <machine/vm_param.h>
+ #include <kern/macro_help.h>
+ #include <kern/lock.h>
+ #include <kern/rdxtree.h>
+@@ -259,7 +260,8 @@ ipc_entry_dealloc(
+ /* Reverse lookups. */
+
+ /* Cast a pointer to a suitable key. */
+-#define KEY(X) ((unsigned long long) (unsigned long) (X))
++#define KEY(X) ((unsigned long long) \
++ (((unsigned long) (X) - VM_MIN_KERNEL_ADDRESS) >> 3))
+
+ /* Insert (OBJ, ENTRY) pair into the reverse mapping. SPACE must
+ be write-locked. */
+--
+2.1.4
+