summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-23 15:29:26 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 22:54:16 +0100
commit8c2e432aabda338af98d3fc6dbb21156108c58ae (patch)
tree592a5fec3dba6e76de3234e0f9a67d78f51c852b /kern
parent9d6d964bad51968375b88e7b0bf56b4361801667 (diff)
kern: move forward declarations into a header file
* kern/thread.c [MACH_DEBUG] (stack_init, stack_finalize): Remove forward declarations. * kern/thread.h [MACH_DEBUG] (stack_init, stack_finalize): Add prototypes.
Diffstat (limited to 'kern')
-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_ */