Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/mach The message id of replies is simply the mess...



details:   https://anonhg.NetBSD.org/src/rev/f2c879a63af7
branches:  trunk
changeset: 539195:f2c879a63af7
user:      manu <manu%NetBSD.org@localhost>
date:      Sun Nov 10 22:05:35 2002 +0000

description:
The message id of replies is simply the message id of the request plus 100...

diffstat:

 sys/compat/mach/mach_host.c |  12 ++++++------
 sys/compat/mach/mach_port.c |   8 ++++----
 sys/compat/mach/mach_task.c |   8 ++++----
 sys/compat/mach/mach_vm.c   |   8 ++++----
 4 files changed, 18 insertions(+), 18 deletions(-)

diffs (162 lines):

diff -r be9cccacc1d5 -r f2c879a63af7 sys/compat/mach/mach_host.c
--- a/sys/compat/mach/mach_host.c       Sun Nov 10 21:53:40 2002 +0000
+++ b/sys/compat/mach/mach_host.c       Sun Nov 10 22:05:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_host.c,v 1.3 2002/11/10 21:53:40 manu Exp $ */
+/*     $NetBSD: mach_host.c,v 1.4 2002/11/10 22:05:35 manu Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_host.c,v 1.3 2002/11/10 21:53:40 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_host.c,v 1.4 2002/11/10 22:05:35 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -74,7 +74,7 @@
                    M_TEMP, M_ZERO|M_WAITOK);
                rep->rep_msgh.msgh_bits = 0x1200; /* XXX why? */
                rep->rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-               rep->rep_msgh.msgh_id = 300;    /* XXX why? */
+               rep->rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
 
                info = (struct mach_host_basic_info *)&rep->rep_data[0];
                info->max_cpus = 1; /* XXX fill this  accurately */
@@ -91,7 +91,7 @@
                    M_TEMP, M_ZERO|M_WAITOK);
                rep->rep_msgh.msgh_bits = 0x1200; /* XXX why? */
                rep->rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-               rep->rep_msgh.msgh_id = 300;    /* XXX why? */
+               rep->rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
                break;
 
        case MACH_HOST_SCHED_INFO:
@@ -125,7 +125,7 @@
        rep.rep_msgh.msgh_bits = 0x1200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 302;     /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
        rep.rep_page_size = PAGE_SIZE;
        
        if ((error = copyout(&rep, msgh, sizeof(rep))) != 0)
@@ -146,7 +146,7 @@
        rep.rep_msgh.msgh_bits = 0x80001200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 306; /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
        rep.rep_body.msgh_descriptor_count = 1; /* XXX why? */
        rep.rep_clock_serv.name = 0x60b; /* XXX */
        rep.rep_clock_serv.disposition = 0x11; /* XXX */
diff -r be9cccacc1d5 -r f2c879a63af7 sys/compat/mach/mach_port.c
--- a/sys/compat/mach/mach_port.c       Sun Nov 10 21:53:40 2002 +0000
+++ b/sys/compat/mach/mach_port.c       Sun Nov 10 22:05:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_port.c,v 1.1 2002/11/10 21:53:40 manu Exp $ */
+/*     $NetBSD: mach_port.c,v 1.2 2002/11/10 22:05:35 manu Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_port.c,v 1.1 2002/11/10 21:53:40 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_port.c,v 1.2 2002/11/10 22:05:35 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -110,7 +110,7 @@
        rep.rep_msgh.msgh_bits = 0x1200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 3306; /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
 
        if ((error = copyout(&rep, msgh, sizeof(rep))) != 0)
                return error;
@@ -133,7 +133,7 @@
        rep.rep_msgh.msgh_bits = 0x1200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 3304; /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
        rep.rep_trailer.msgh_trailer_size = 1811; /* XXX why? */
 
        if ((error = copyout(&rep, msgh, sizeof(rep))) != 0)
diff -r be9cccacc1d5 -r f2c879a63af7 sys/compat/mach/mach_task.c
--- a/sys/compat/mach/mach_task.c       Sun Nov 10 21:53:40 2002 +0000
+++ b/sys/compat/mach/mach_task.c       Sun Nov 10 22:05:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_task.c,v 1.1 2002/11/10 21:53:41 manu Exp $ */
+/*     $NetBSD: mach_task.c,v 1.2 2002/11/10 22:05:35 manu Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_task.c,v 1.1 2002/11/10 21:53:41 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_task.c,v 1.2 2002/11/10 22:05:35 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -65,7 +65,7 @@
        rep.rep_msgh.msgh_bits = 0x8001200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 3509; /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
        rep.rep_msgh_body.msgh_descriptor_count = 1;    /* XXX why ? */
        rep.rep_special_port.name = 0x90f; /* XXX why? */
        rep.rep_special_port.disposition = 0x11; /* XXX why? */
@@ -92,7 +92,7 @@
        rep.rep_msgh.msgh_bits = 0x8001200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 3504; /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
        rep.rep_msgh_body.msgh_descriptor_count = 1;    /* XXX why ? */
        rep.rep_init_port_set.address = (void *)0x8000; /* XXX why? */
        rep.rep_init_port_set.count = 3; /* XXX why ? */
diff -r be9cccacc1d5 -r f2c879a63af7 sys/compat/mach/mach_vm.c
--- a/sys/compat/mach/mach_vm.c Sun Nov 10 21:53:40 2002 +0000
+++ b/sys/compat/mach/mach_vm.c Sun Nov 10 22:05:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_vm.c,v 1.1 2002/11/10 21:53:41 manu Exp $ */
+/*     $NetBSD: mach_vm.c,v 1.2 2002/11/10 22:05:36 manu Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_vm.c,v 1.1 2002/11/10 21:53:41 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_vm.c,v 1.2 2002/11/10 22:05:36 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -79,7 +79,7 @@
        rep.rep_msgh.msgh_bits = 0x1200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 3912; /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
        rep.rep_trailer.msgh_trailer_type = 0x80001513; /* XXX why? */
        rep.rep_trailer.msgh_trailer_size = 0x00000713; /* XXX why? */
 
@@ -112,7 +112,7 @@
        rep.rep_msgh.msgh_bits = 0x1200; /* XXX why? */
        rep.rep_msgh.msgh_size = sizeof(rep);
        rep.rep_msgh.msgh_local_port = req.req_msgh.msgh_local_port;
-       rep.rep_msgh.msgh_id = 3902; /* XXX why? */
+       rep.rep_msgh.msgh_id = req.req_msgh.msgh_id + 100;
 
        if ((error = copyout(&rep, msgh, sizeof(rep))) != 0)
                return error;



Home | Main Index | Thread Index | Old Index