Marin Ramesa, le Mon 02 Dec 2013 22:54:50 +0100, a écrit :
> * vm/memory_object_proxy.c (memory_object_proxy): Move struct definition to
> vm/memory_object_proxy.h.
Ditto.
> ---
> vm/memory_object_proxy.c | 10 ----------
> vm/memory_object_proxy.h | 9 +++++++++
> 2 files changed, 9 insertions(+), 10 deletions(-)
>
> diff --git a/vm/memory_object_proxy.c b/vm/memory_object_proxy.c
> index 4fed312..b200c5a 100644
> --- a/vm/memory_object_proxy.c
> +++ b/vm/memory_object_proxy.c
> @@ -50,16 +50,6 @@
> /* The cache which holds our proxy memory objects. */
> static struct kmem_cache memory_object_proxy_cache;
>
> -struct memory_object_proxy
> -{
> - struct ipc_port *port;
> -
> - ipc_port_t object;
> - vm_prot_t max_protection;
> -};
> -typedef struct memory_object_proxy *memory_object_proxy_t;
> -
> -
> void
> memory_object_proxy_init (void)
> {
> diff --git a/vm/memory_object_proxy.h b/vm/memory_object_proxy.h
> index 8c2bc0f..dd55ebe 100644
> --- a/vm/memory_object_proxy.h
> +++ b/vm/memory_object_proxy.h
> @@ -28,6 +28,15 @@
> #include <mach/message.h>
> #include <mach/vm_prot.h>
>
> +struct memory_object_proxy
> +{
> + struct ipc_port *port;
> +
> + ipc_port_t object;
> + vm_prot_t max_protection;
> +};
> +typedef struct memory_object_proxy *memory_object_proxy_t;
> +
> extern void memory_object_proxy_init (void);
> extern boolean_t memory_object_proxy_notify (mach_msg_header_t *msg);
> extern kern_return_t memory_object_create_proxy (ipc_space_t space,
> --
> 1.8.1.4
>
>
--
Samuel
+#if defined(__alpha__) && defined(CONFIG_PCI)
+ /*
+ * The meaning of life, the universe, and everything. Plus
+ * this makes the year come out right.
+ */
+ year -= 42;
+#endif
(From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner)