From 5507b361044db9036a96b42f991972c9d3ea0494 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sun, 3 Dec 2006 21:50:21 +0000 Subject: 2006-12-03 Thomas Schwinge [patch #5019 --- ``Remove checks for continuations''] * DEVELOPMENT: Document the removal. * i386/configfrag.ac (CONTINUATIONS): Don't define. 2006-12-03 Leonardo Lopes Pereira [patch #5019 --- ``Remove checks for continuations''] * ipc/mach_msg.c: Adopt all users of CONTINUATIONS as if it were always defined. * kern/eventcount.c: Likewise. * kern/ipc_sched.c: Likewise. * kern/syscall_subr.c: Likewise. * vm/vm_fault.c: Likewise. * vm/vm_pageout.c: Likewise. * vm/vm_resident.c: Likewise. --- kern/eventcount.c | 4 ---- kern/ipc_sched.c | 2 -- kern/syscall_subr.c | 12 ------------ 3 files changed, 18 deletions(-) (limited to 'kern') diff --git a/kern/eventcount.c b/kern/eventcount.c index 14cd9894..fe7626da 100644 --- a/kern/eventcount.c +++ b/kern/eventcount.c @@ -126,7 +126,6 @@ void evc_notify_abort(thread_t thread) splx(s); } -#ifdef CONTINUATIONS /* * Just so that we return success, and give * up the stack while blocked @@ -137,9 +136,6 @@ evc_continue(void) thread_syscall_return(KERN_SUCCESS); /* NOTREACHED */ } -#else /* not CONTINUATIONS */ -#define evc_continue 0 -#endif /* not CONTINUATIONS */ /* * User-trappable diff --git a/kern/ipc_sched.c b/kern/ipc_sched.c index 5f7fbf01..60f12838 100644 --- a/kern/ipc_sched.c +++ b/kern/ipc_sched.c @@ -166,7 +166,6 @@ thread_will_wait_with_timeout( #define check_bound_processor(thread) TRUE #endif /* NCPUS > 1 */ -#ifdef CONTINUATIONS /* * Routine: thread_handoff * Purpose: @@ -282,4 +281,3 @@ thread_handoff( counter_always(c_thread_handoff_hits++); return TRUE; } -#endif /* CONTINUATIONS */ diff --git a/kern/syscall_subr.c b/kern/syscall_subr.c index a94e8db9..01bd932b 100644 --- a/kern/syscall_subr.c +++ b/kern/syscall_subr.c @@ -65,7 +65,6 @@ extern void thread_depress_priority(); extern kern_return_t thread_depress_abort(); -#ifdef CONTINUATIONS void swtch_continue() { register processor_t myprocessor; @@ -75,9 +74,6 @@ void swtch_continue() myprocessor->processor_set->runq.count > 0); /*NOTREACHED*/ } -#else /* not CONTINUATIONS */ -#define swtch_continue 0 -#endif /* not CONTINUATIONS */ boolean_t swtch() { @@ -97,7 +93,6 @@ boolean_t swtch() myprocessor->processor_set->runq.count > 0); } -#ifdef CONTINUATIONS void swtch_pri_continue() { register thread_t thread = current_thread(); @@ -110,9 +105,6 @@ void swtch_pri_continue() myprocessor->processor_set->runq.count > 0); /*NOTREACHED*/ } -#else /* not CONTINUATIONS */ -#define swtch_pri_continue 0 -#endif /* not CONTINUATIONS */ boolean_t swtch_pri(pri) int pri; @@ -149,7 +141,6 @@ boolean_t swtch_pri(pri) extern int hz; -#ifdef CONTINUATIONS void thread_switch_continue() { register thread_t cur_thread = current_thread(); @@ -162,9 +153,6 @@ void thread_switch_continue() thread_syscall_return(KERN_SUCCESS); /*NOTREACHED*/ } -#else /* not CONTINUATIONS */ -#define thread_switch_continue 0 -#endif /* not CONTINUATIONS */ /* * thread_switch: -- cgit v1.2.3