* 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