summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:53:43 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 06:01:59 +0900
commitc6478d03a31a170755423ea79ff6a2532d965d25 (patch)
tree66359ebc826698b94cc230f7222de429108cb98a
parente2f095dc681558b63913e4080ee9a9bec595b427 (diff)
i386/i386/io_perm.c: remove forward declaration
* i386/i386/io_perm.c: Include pcb.h. (update_ktss_iopb): Remove forward declaration. * i386/i386/pcb.h (update_ktss_iopb): Add prototype.
-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_ */