[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnumach ./ChangeLog i386/i386/io_perm.c i386/i3...
From: |
Marcus Brinkmann |
Subject: |
gnumach ./ChangeLog i386/i386/io_perm.c i386/i3... |
Date: |
Wed, 20 Nov 2002 14:31:08 -0500 |
CVSROOT: /cvsroot/hurd
Module name: gnumach
Changes by: Marcus Brinkmann <address@hidden> 02/11/20 14:31:08
Modified files:
. : ChangeLog
i386/i386 : io_perm.c
Removed files:
i386/i386 : iopb.c iopb.h
Log message:
2002-11-20 Marcus Brinkmann <address@hidden>
* i386/i386/io_perm.c (io_perm_device_ops): New static variable.
(i386_io_perm_create): Use the io_perm_device_ops for the device.
(i386_io_perm_modify): Check that this is really an io_perm device.
* iopb.h, iopb.c: Obsolete files removed.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnumach/gnumach/ChangeLog.diff?tr1=1.153&tr2=1.154&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnumach/gnumach/i386/i386/io_perm.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnumach/ChangeLog
diff -u gnumach/ChangeLog:1.153 gnumach/ChangeLog:1.154
--- gnumach/ChangeLog:1.153 Tue Nov 12 22:30:51 2002
+++ gnumach/ChangeLog Wed Nov 20 14:31:08 2002
@@ -1,3 +1,10 @@
+2002-11-20 Marcus Brinkmann <address@hidden>
+
+ * i386/i386/io_perm.c (io_perm_device_ops): New static variable.
+ (i386_io_perm_create): Use the io_perm_device_ops for the device.
+ (i386_io_perm_modify): Check that this is really an io_perm device.
+ * iopb.h, iopb.c: Obsolete files removed.
+
2002-11-12 Roland McGrath <address@hidden>
* oskit/ds_routines.c (dev_open_com): Revert last change.
Index: gnumach/i386/i386/io_perm.c
diff -u gnumach/i386/i386/io_perm.c:1.2 gnumach/i386/i386/io_perm.c:1.3
--- gnumach/i386/i386/io_perm.c:1.2 Mon May 27 19:01:50 2002
+++ gnumach/i386/i386/io_perm.c Wed Nov 20 14:31:08 2002
@@ -62,12 +62,15 @@
#include "io_perm.h"
#include "gdt.h"
-
/* XXX From oskit/ds_routines.c */
device_t dev_open_alloc (void);
void setup_no_senders (device_t dev);
+/* We use our own device ops to identify an io_perm pseudo device. */
+static struct device_ops io_perm_device_ops;
+
+
/* The outtran which allows MiG to convert an io_perm_t object to a port
representing it. */
ipc_port_t
@@ -144,7 +147,7 @@
/* Set up the dummy device. */
(*new)->com_device = 0;
(*new)->mode = 0;
- (*new)->ops = &no_device_ops;
+ (*new)->ops = &io_perm_device_ops;
setup_no_senders ((device_t) *new);
(*new)->com.io_perm.from = from;
@@ -173,7 +176,8 @@
unsigned char *iopb;
io_port_t iopb_size;
- if (target_task == TASK_NULL || (device_t) io_perm == DEVICE_NULL)
+ if (target_task == TASK_NULL || (device_t) io_perm == DEVICE_NULL
+ || ((device_t) io_perm)->ops != &io_perm_device_ops)
return KERN_INVALID_ARGUMENT;
from = io_perm->com.io_perm.from;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnumach ./ChangeLog i386/i386/io_perm.c i386/i3...,
Marcus Brinkmann <=