bug-hurd
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]