[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
- [PATCH 06/18] vm/vm_object.c: remove unused variable, (continued)
- [PATCH 06/18] vm/vm_object.c: remove unused variable, Marin Ramesa, 2013/12/06
- [PATCH 07/18] vm/vm_map.c: use boolean instead of an int, Marin Ramesa, 2013/12/06
- [PATCH 02/18] i386/i386at/lpr.c: fix argument list, Marin Ramesa, 2013/12/06
- [PATCH 08/18] kern/boot_script.c: move struct definitions to a header file, Marin Ramesa, 2013/12/06
- [PATCH 09/18] kern/bootstrap.c: move struct definition to a header file, Marin Ramesa, 2013/12/06
- [PATCH 10/18] kern/startup.c: use boolean values, Marin Ramesa, 2013/12/06
- [PATCH 12/18] kern/debug.c: fix implicit declaration of function, Marin Ramesa, 2013/12/06
- [PATCH 11/18] kern/exception.c: move struct definition to a header file,
Marin Ramesa <=
- [PATCH 14/18] Fix initialization from incompatible pointer type, Marin Ramesa, 2013/12/06
- [PATCH 13/18] kern/machine.c: fix implicit declaration of function, Marin Ramesa, 2013/12/06
- [PATCH 15/18] i386/i386at/com.c: fix initialization from incompatible pointer type, Marin Ramesa, 2013/12/06
- [PATCH 16/18] i386/i386at/com.c: fix assignment from incompatible pointer type, Marin Ramesa, 2013/12/06
- [PATCH 17/18] i386/i386at/kd_event.c: fix difference in signedness, Marin Ramesa, 2013/12/06
- [PATCH 18/18] i386/i386at/lpr.c: fix initalization from incompatible pointer type, Marin Ramesa, 2013/12/06