[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 34/68] kern/bootstrap.c: remove forward declarations
From: |
Marin Ramesa |
Subject: |
[PATCH 34/68] kern/bootstrap.c: remove forward declarations |
Date: |
Fri, 29 Nov 2013 22:53:59 +0100 |
* i386/i386/pcb.h: Include mach/thread_status.h.
Include machine/thread.h.
* kern/bootstrap.c: Include machine/pcb.h.
(user_stack_low, set_user_regs): Remove forward declarations.
---
i386/i386/pcb.h | 2 ++
kern/bootstrap.c | 4 +---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/i386/i386/pcb.h b/i386/i386/pcb.h
index cea2fe2..4aad0b2 100644
--- a/i386/i386/pcb.h
+++ b/i386/i386/pcb.h
@@ -28,6 +28,8 @@
#include <sys/types.h>
#include <mach/exec/exec.h>
+#include <mach/thread_status.h>
+#include <machine/thread.h>
extern void pcb_init (thread_t thread);
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index a683ce9..41b02fe 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -37,6 +37,7 @@
#include <mach/message.h>
#include <machine/locore.h>
#include <machine/vm_param.h>
+#include <machine/pcb.h>
#include <ipc/ipc_port.h>
#include <ipc/mach_port.h>
#include <kern/debug.h>
@@ -519,9 +520,6 @@ static void copy_bootstrap(void *e, exec_info_t
*boot_exec_info)
/*
* Allocate the stack, and build the argument list.
*/
-extern vm_offset_t user_stack_low();
-extern vm_offset_t set_user_regs();
-
static void
build_args_and_stack(struct exec_info *boot_exec_info,
char **argv, char **envp)
--
1.8.1.4
- [PATCH 24/68] i386/i386at/conf.c: remove forward declarations, (continued)
- [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
- [PATCH 31/68] ipc/ipc_kmsg.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 33/68] ipc/mach_msg.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 34/68] kern/bootstrap.c: remove forward declarations,
Marin Ramesa <=
- [PATCH 35/68] kern/debug.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 36/68] kern/ipc_mig.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 37/68] kern/processor.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 39/68] kern/startup.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 38/68] kern/sched_prim.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 40/68] kern/syscall_subr.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 41/68] kern/syscall_sw.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 42/68] kern/task.c: remove forward declarations, Marin Ramesa, 2013/11/29