bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 15/23] proc: add a payload-aware intrans function


From: Justus Winter
Subject: [PATCH 15/23] proc: add a payload-aware intrans function
Date: Fri, 29 Nov 2013 01:03:43 +0100

* proc/mig-decls.h (begin_using_exc_payload): New function.
* proc/proc_exc.defs (exception_t): Add payload-aware in-translator
  function.
---
 proc/mig-decls.h   |    6 ++++++
 proc/proc_exc.defs |    1 +
 2 files changed, 7 insertions(+)

diff --git a/proc/mig-decls.h b/proc/mig-decls.h
index 0d5bd4d..8c86c85 100644
--- a/proc/mig-decls.h
+++ b/proc/mig-decls.h
@@ -32,6 +32,12 @@ begin_using_exc_port (mach_port_t port)
   return ports_lookup_port (NULL, port, exc_class);
 }
 
+static inline exc_t __attribute__ ((unused))
+begin_using_exc_payload (unsigned long payload)
+{
+  return ports_lookup_payload (NULL, payload, exc_class);
+}
+
 static inline void __attribute__ ((unused))
 end_using_exc (exc_t exc)
 {
diff --git a/proc/proc_exc.defs b/proc/proc_exc.defs
index c910824..9dc3626 100644
--- a/proc/proc_exc.defs
+++ b/proc/proc_exc.defs
@@ -38,6 +38,7 @@ import "mig-decls.h";
 type exception_t = mach_port_copy_send_t
        cusertype: mach_port_t
        intran: exc_t begin_using_exc_port (exception_t)
+       intranpayload: exc_t begin_using_exc_payload
        destructor: end_using_exc (exc_t);
 
 routine proc_exception_raise (
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]