summaryrefslogtreecommitdiff
path: root/debian/patches/0011-exec-add-payload-aware-intrans-functions.patch
blob: 82a3146b70e49b1860088f0dab11473df22975dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From 428b1cf4a8cd9a3aca5b58993ba619e14852bf40 Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Thu, 28 Nov 2013 11:08:39 +0100
Subject: [PATCH hurd 11/30] exec: add payload-aware intrans functions

* exec/execmutations.h: Add mutators.
* exec/mig-decls.h (begin_using_bootinfo_payload): New function.
---
 exec/execmutations.h | 3 +++
 exec/mig-decls.h     | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/exec/execmutations.h b/exec/execmutations.h
index 2acca7a..0b5b8bb 100644
--- a/exec/execmutations.h
+++ b/exec/execmutations.h
@@ -1,6 +1,7 @@
 /* CPP definitions for MiG processing of exec.defs for exec server.  */
 
 #define FILE_INTRAN trivfs_protid_t trivfs_begin_using_protid (file_t)
+#define FILE_INTRAN_PAYLOAD trivfs_protid_t trivfs_begin_using_protid_payload
 #define FILE_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t)
 
 #define EXEC_IMPORTS					\
@@ -9,6 +10,8 @@
 
 #define EXEC_STARTUP_INTRAN                             \
   bootinfo_t begin_using_bootinfo_port (exec_startup_t)
+#define EXEC_STARTUP_INTRAN_PAYLOAD                     \
+  bootinfo_t begin_using_bootinfo_payload
 #define EXEC_STARTUP_DESTRUCTOR                         \
   end_using_bootinfo (bootinfo_t)
 #define EXEC_STARTUP_IMPORTS                            \
diff --git a/exec/mig-decls.h b/exec/mig-decls.h
index 0437414..cf3e17d 100644
--- a/exec/mig-decls.h
+++ b/exec/mig-decls.h
@@ -30,6 +30,12 @@ begin_using_bootinfo_port (mach_port_t port)
     return ports_lookup_port (port_bucket, port, execboot_portclass);
 }
 
+static inline struct bootinfo * __attribute__ ((unused))
+begin_using_bootinfo_payload (unsigned long payload)
+{
+    return ports_lookup_payload (port_bucket, payload, execboot_portclass);
+}
+
 static inline void __attribute__ ((unused))
 end_using_bootinfo (struct bootinfo *b)
 {
-- 
2.1.3