summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kern/thread.c3
-rw-r--r--kern/thread.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/kern/thread.c b/kern/thread.c
index 67fd41e..7232412 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -80,9 +80,6 @@ extern void pcb_module_init(void);
struct thread thread_template;
#if MACH_DEBUG
-void stack_init(vm_offset_t stack); /* forward */
-void stack_finalize(vm_offset_t stack); /* forward */
-
#define STACK_MARKER 0xdeadbeefU
boolean_t stack_check_usage = FALSE;
decl_simple_lock_data(, stack_usage_lock)
diff --git a/kern/thread.h b/kern/thread.h
index beb2dbc..559e90b 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -391,4 +391,9 @@ extern void thread_unfreeze(
#define current_space() (current_task()->itk_space)
#define current_map() (current_task()->map)
+#if MACH_DEBUG
+void stack_init(vm_offset_t stack);
+void stack_finalize(vm_offset_t stack);
+#endif /* MACH_DEBUG */
+
#endif /* _KERN_THREAD_H_ */