[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 20/68] i386/i386/pcb.c: remove forward declarations
From: |
Marin Ramesa |
Subject: |
[PATCH 20/68] i386/i386/pcb.c: remove forward declarations |
Date: |
Fri, 29 Nov 2013 22:53:45 +0100 |
* i386/i386/pcb.c (Load_context, Switch_context, Thread_continue,
user_ldt_free): Remove forward declarations.
* i386/i386/pcb.h (Load_context, Switch_context, Thread_continue): Add
prototypes.
* i386/i386/user_ldt.h (user_ldt_free): Add prototype.
---
i386/i386/pcb.c | 6 ------
i386/i386/pcb.h | 6 ++++++
i386/i386/user_ldt.h | 3 +++
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c
index bb30959..02627ae 100644
--- a/i386/i386/pcb.c
+++ b/i386/i386/pcb.c
@@ -60,12 +60,6 @@
#include <i386/mp_desc.h>
#endif
-extern thread_t Load_context();
-extern thread_t Switch_context();
-extern void Thread_continue();
-
-extern void user_ldt_free();
-
struct kmem_cache pcb_cache;
vm_offset_t kernel_stack[NCPUS]; /* top of active_stack */
diff --git a/i386/i386/pcb.h b/i386/i386/pcb.h
index 9edc594..cea2fe2 100644
--- a/i386/i386/pcb.h
+++ b/i386/i386/pcb.h
@@ -72,4 +72,10 @@ extern void switch_ktss (pcb_t pcb);
extern void update_ktss_iopb (unsigned char *new_iopb, io_port_t size);
+extern thread_t Load_context (thread_t new);
+
+extern thread_t Switch_context (thread_t old, void (*continuation)(), thread_t
new);
+
+extern void Thread_continue (void);
+
#endif /* _I386_PCB_H_ */
diff --git a/i386/i386/user_ldt.h b/i386/i386/user_ldt.h
index c90273f..26caa27 100644
--- a/i386/i386/user_ldt.h
+++ b/i386/i386/user_ldt.h
@@ -44,4 +44,7 @@ struct user_ldt {
};
typedef struct user_ldt * user_ldt_t;
+extern void
+user_ldt_free(user_ldt_t user_ldt);
+
#endif /* _I386_USER_LDT_H_ */
--
1.8.1.4
- [PATCH 15/68] i386/i386/db_trace.c: remove forward declaration, (continued)
- [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, 2013/11/29
- [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 <=
[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
[PATCH 24/68] i386/i386at/conf.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 26/68] i386/i386at/kd_event.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 27/68] i386/i386at/kd_mouse.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 28/68] i386/i386at: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 29/68] i386/i386at/pic_isa.c: remove forward declaration, Marin Ramesa, 2013/11/29
[PATCH 30/68] i386/intel/pmap.c: remove forward declarations, Marin Ramesa, 2013/11/29
[PATCH 32/68] ipc/ipc_table.c: remove forward declaration, Marin Ramesa, 2013/11/29