summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-05 22:03:58 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-09 00:27:58 +0900
commit94c96554e093f4b6cc947125f60e8da39031f08c (patch)
tree08d25c95d8899724bfaf0723c131e51d3f3f59af /kern
parentb848914aac388e82948aa2b277c5a1edf3de158d (diff)
Cleanup of the prototypes
* device/cirbuf.h (nqdb): Remove prototype without definition. * device/conf.h (dev_set_indirect): Likewise. * kern/boot_script.h (boot_script_read_file): Likewise. * kern/eventcount.h (evc_notify_abort): Remove duplicate prototype. * kern/thread.h (thread_set_own_priority): Likewise. * kern/thread_swap.h (thread_swapout): Remove prototype without definition. * kern/timer.h (softclock): Remove duplicate prototype. * vm/pmap.h (pmap_resident_count, pmap_access, pmap_phys_address, pmap_phys_to_frame): Remove prototypes without function definition. * vm/vm_page.h (vm_set_page_size): Likewise.
Diffstat (limited to 'kern')
-rw-r--r--kern/boot_script.h4
-rw-r--r--kern/eventcount.h2
-rw-r--r--kern/thread.h2
-rw-r--r--kern/thread_swap.h1
-rw-r--r--kern/timer.h2
5 files changed, 0 insertions, 11 deletions
diff --git a/kern/boot_script.h b/kern/boot_script.h
index c5ad673..c007d77 100644
--- a/kern/boot_script.h
+++ b/kern/boot_script.h
@@ -69,10 +69,6 @@ int boot_script_exec_cmd (void *hook,
task_t task, char *path, int argc,
char **argv, char *strings, int stringlen);
-/* The user must define this function. Load the contents of FILE
- into a fresh anonymous memory object and return the memory object port. */
-mach_port_t boot_script_read_file (const char *file);
-
/* The user must define this functions to perform the corresponding
Mach task manipulations. */
int boot_script_task_create (struct cmd *); /* task_create + task_suspend */
diff --git a/kern/eventcount.h b/kern/eventcount.h
index f3ba047..7cc8220 100644
--- a/kern/eventcount.h
+++ b/kern/eventcount.h
@@ -55,8 +55,6 @@ extern void evc_init(evc_t ev),
extern kern_return_t evc_wait(natural_t ev_id);
extern kern_return_t evc_wait_clear(natural_t ev_id);
-extern void evc_notify_abort (thread_t thread);
-
#if NCPUS <= 1
void simpler_thread_setrun(
thread_t th,
diff --git a/kern/thread.h b/kern/thread.h
index 559e90b..9946bde 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -345,8 +345,6 @@ extern kern_return_t thread_halt(
boolean_t must_halt);
extern void thread_halt_self(void);
extern void thread_force_terminate(thread_t);
-extern void thread_set_own_priority(
- int priority);
extern thread_t kernel_thread(
task_t task,
void (*start)(void),
diff --git a/kern/thread_swap.h b/kern/thread_swap.h
index 3113030..7f611ec 100644
--- a/kern/thread_swap.h
+++ b/kern/thread_swap.h
@@ -39,6 +39,5 @@ extern void swapper_init(void);
extern void thread_swapin(thread_t thread);
extern void thread_doswapin(thread_t thread);
extern void swapin_thread(void);
-extern void thread_swapout(thread_t thread);
#endif /* _KERN_THREAD_SWAP_H_ */
diff --git a/kern/timer.h b/kern/timer.h
index 76a4117..57f017a 100644
--- a/kern/timer.h
+++ b/kern/timer.h
@@ -182,8 +182,6 @@ MACRO_END
extern void init_timers(void);
-void softclock(void);
-
void timer_init(timer_t this_timer);
#endif /* _KERN_TIMER_H_ */