bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 11/18] kern/exception.c: move struct definition to a header file


From: Marin Ramesa
Subject: [PATCH 11/18] kern/exception.c: move struct definition to a header file
Date: Fri, 6 Dec 2013 16:29:53 +0100

* kern/exception.c (mach_exception): Move struct definition to kern/exception.h.

---
 kern/exception.c | 14 --------------
 kern/exception.h | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/kern/exception.c b/kern/exception.c
index 0232773..ac7ead2 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -260,20 +260,6 @@ exception_no_server()
 #define MACH_EXCEPTION_ID              2400    /* from mach/exc.defs */
 #define MACH_EXCEPTION_REPLY_ID                (MACH_EXCEPTION_ID + 100)
 
-struct mach_exception {
-       mach_msg_header_t       Head;
-       mach_msg_type_t         threadType;
-       mach_port_t             thread;
-       mach_msg_type_t         taskType;
-       mach_port_t             task;
-       mach_msg_type_t         exceptionType;
-       integer_t               exception;
-       mach_msg_type_t         codeType;
-       integer_t               code;
-       mach_msg_type_t         subcodeType;
-       integer_t               subcode;
-};
-
 #define        INTEGER_T_SIZE_IN_BITS  (8 * sizeof(integer_t))
 #define        INTEGER_T_TYPE          MACH_MSG_TYPE_INTEGER_T
                                        /* in mach/machine/vm_types.h */
diff --git a/kern/exception.h b/kern/exception.h
index 55902dd..c54915f 100644
--- a/kern/exception.h
+++ b/kern/exception.h
@@ -22,6 +22,20 @@
 #include <ipc/ipc_types.h>
 #include <ipc/ipc_kmsg.h>
 
+struct mach_exception {
+       mach_msg_header_t       Head;
+       mach_msg_type_t         threadType;
+       mach_port_t             thread;
+       mach_msg_type_t         taskType;
+       mach_port_t             task;
+       mach_msg_type_t         exceptionType;
+       integer_t               exception;
+       mach_msg_type_t         codeType;
+       integer_t               code;
+       mach_msg_type_t         subcodeType;
+       integer_t               subcode;
+};
+
 extern void
 exception(
        integer_t       _exception,
-- 
1.8.1.4




reply via email to

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