From f6fcac02fbd3182f067f69bfb256298cd4c3b37f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 4 Aug 2007 15:47:18 +0000 Subject: 2007-08-04 Samuel Thibault * i386/i386/io_perm.c (i386_io_perm_create): Lock io_perm->port, not inexistent device->port. * i386/i386/mp_desc.c: Include * i386/i386/mp_desc.h: Include instead of "idt.h" --- ChangeLog | 4 ++++ i386/i386/io_perm.c | 2 +- i386/i386/mp_desc.c | 1 + i386/i386/mp_desc.h | 2 +- 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 + * i386/i386/mp_desc.h: Include instead of "idt.h" 2007-07-08 Samuel Thibault 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, ¬ify); 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 #include #include +#include /* * 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 #include "gdt.h" #include "ldt.h" -- cgit v1.2.3