summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/i386/io_perm.c6
-rw-r--r--i386/i386/pcb.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/i386/i386/io_perm.c b/i386/i386/io_perm.c
index 8bacb8d..4704275 100644
--- a/i386/i386/io_perm.c
+++ b/i386/i386/io_perm.c
@@ -66,6 +66,7 @@
#include "io_perm.h"
#include "gdt.h"
+#include "pcb.h"
/* Our device emulation ops. See below, at the bottom of this file. */
static struct device_emulation_ops io_perm_device_emulation_ops;
@@ -219,11 +220,6 @@ i386_io_perm_create (ipc_port_t master_port, io_port_t from, io_port_t to,
return KERN_SUCCESS;
}
-
-/* From pcb.c. */
-extern void update_ktss_iopb (unsigned char *new_iopb, int last);
-
-
/* Modify the I/O permissions for TARGET_TASK. If ENABLE is TRUE, the
permission to acces the I/O ports specified by IO_PERM is granted,
otherwise it is withdrawn.
diff --git a/i386/i386/pcb.h b/i386/i386/pcb.h
index 21bdfd9..9edc594 100644
--- a/i386/i386/pcb.h
+++ b/i386/i386/pcb.h
@@ -70,4 +70,6 @@ extern vm_offset_t stack_detach (thread_t thread);
extern void switch_ktss (pcb_t pcb);
+extern void update_ktss_iopb (unsigned char *new_iopb, io_port_t size);
+
#endif /* _I386_PCB_H_ */