[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/68] i386/i386/io_perm.c: remove forward declaration
From: |
Marin Ramesa |
Subject: |
[PATCH 18/68] i386/i386/io_perm.c: remove forward declaration |
Date: |
Fri, 29 Nov 2013 22:53:43 +0100 |
* i386/i386/io_perm.c: Include pcb.h.
(update_ktss_iopb): Remove forward declaration.
* i386/i386/pcb.h (update_ktss_iopb): Add prototype.
---
i386/i386/io_perm.c | 6 +-----
i386/i386/pcb.h | 2 ++
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_ */
--
1.8.1.4
- [PATCH 09/68] ddb/db_sym.c: fix argument list, (continued)
- [PATCH 09/68] ddb/db_sym.c: fix argument list, Marin Ramesa, 2013/11/29
- [PATCH 08/68] ddb/db_sym.c: remove useless forward declarations without definitions, Marin Ramesa, 2013/11/29
- [PATCH 10/68] ddb/db_command.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 11/68] ddb/db_command.c: remove useless forward declaration without definition, Marin Ramesa, 2013/11/29
- [PATCH 12/68] ddb/db_trap.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 13/68] ddb/db_variables.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 14/68] device/device_init.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 15/68] i386/i386/db_trace.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 16/68] i386/i386/fpu.c, trap.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 17/68] i386/i386/fpu.c: remove (#if 1), Marin Ramesa, 2013/11/29
- [PATCH 18/68] i386/i386/io_perm.c: remove forward declaration,
Marin Ramesa <=
- [PATCH 19/68] i386/i386/ldt.c: remove useless forward declaration without definition, Marin Ramesa, 2013/11/29
[PATCH 21/68] kern: new header file exception.h, Marin Ramesa, 2013/11/29
[PATCH 20/68] i386/i386/pcb.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 22/68] kern/exception.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 23/68] i386/i386at/autoconf.c, com.c, lpr.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 25/68] i386/i386at/kd.c: remove forward declarations, Marin Ramesa, 2013/11/29