summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--i386/i386/io_perm.c2
-rw-r--r--i386/i386/mp_desc.c1
-rw-r--r--i386/i386/mp_desc.h2
4 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0b2f0e4..9b381ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,10 @@
(TIME_INT_ENTRY, TIME_INT_EXIT, timer_switch, start_timer): Use
EXT(current_tstamp) and EXT(current_timer) instead of _current_tstampt
and _current_timer.
+ * i386/i386/io_perm.c (i386_io_perm_create): Lock io_perm->port, not
+ inexistent device->port.
+ * i386/i386/mp_desc.c: Include <machine/vm_param.h>
+ * i386/i386/mp_desc.h: Include <i386at/idt.h> instead of "idt.h"
2007-07-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
diff --git a/i386/i386/io_perm.c b/i386/i386/io_perm.c
index 3a03408..df25cc6 100644
--- a/i386/i386/io_perm.c
+++ b/i386/i386/io_perm.c
@@ -209,7 +209,7 @@ i386_io_perm_create (ipc_port_t master_port, io_port_t from, io_port_t to,
ipc_port_t notify;
notify = ipc_port_make_sonce(io_perm->port);
- ip_lock(device->port);
+ ip_lock(io_perm->port);
ipc_port_nsrequest(io_perm->port, 1, notify, &notify);
assert(notify == IP_NULL);
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index e1ac9c3..300ea7a 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -38,6 +38,7 @@
#include <machine/ktss.h>
#include <machine/tss.h>
#include <machine/io_perm.h>
+#include <machine/vm_param.h>
/*
* The i386 needs an interrupt stack to keep the PCB stack from being
diff --git a/i386/i386/mp_desc.h b/i386/i386/mp_desc.h
index 8ae272b..03d7194 100644
--- a/i386/i386/mp_desc.h
+++ b/i386/i386/mp_desc.h
@@ -40,7 +40,7 @@
#include "seg.h"
#include "tss.h"
-#include "idt.h"
+#include <i386at/idt.h>
#include "gdt.h"
#include "ldt.h"