diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-26 17:06:21 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-26 17:06:21 +0000 |
| commit | f96ad4c223442d7beefc05399f255dc89b72108e (patch) | |
| tree | a1eb3a1ea442b6b5ed8c84da1e6a766614f65cfc /sys/kern/kern_switch.c | |
| parent | fbd7573929ce7450b231d27262877cef7d94a758 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_switch.c')
| -rw-r--r-- | sys/kern/kern_switch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index bd9c4bf39b2f..44c9e5dacd3b 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -69,6 +69,11 @@ setrunqueue(struct thread *td) runq_add(&runq, td->td_kse); } +/* + * XXX temporary until these routines are moved fully into MD areas + */ +#ifndef MACHINE_CRITICAL_ENTER + /* Critical sections that prevent preemption. */ void critical_enter(void) @@ -94,6 +99,8 @@ critical_exit(void) td->td_critnest--; } +#endif + /* * Clear the status bit of the queue corresponding to priority level pri, * indicating that it is empty. |
