[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/18] kern/exception.c: move struct definition to a header f
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 11/18] kern/exception.c: move struct definition to a header file |
Date: |
Mon, 9 Dec 2013 00:35:52 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Fri 06 Dec 2013 16:29:53 +0100, a écrit :
> * kern/exception.c (mach_exception): Move struct definition to
> kern/exception.h.
Ditto.
> ---
> 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
>
>
--
Samuel
Je suis maintenant possesseur d'un ordinateur portable Compaq Armada
1592DT avec port infra-rouge. Auriez-vous connaissance de programmes
suceptibles d'utiliser ce port afin de servir de télécommande ?
-+- JN in NPC : ben quoi, c'est pas à ça que ça sert ?
- [PATCH 07/18] vm/vm_map.c: use boolean instead of an int, (continued)
- [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, 2013/12/06
- Re: [PATCH 11/18] kern/exception.c: move struct definition to a header file,
Samuel Thibault <=
- [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