From ab2c7bf24831714b92f839ddaf0043e2b85e8d96 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 20 Oct 2000 07:43:55 +0000 Subject: - machine/mutex.h -> sys/mutex.h - Use cpu_throw() instead of cpu_switch() during cpu_exit() since we don't need to save our previous state. --- sys/amd64/amd64/vm_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/amd64/amd64/vm_machdep.c') diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index 60c15a6..1984e69 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -58,12 +58,12 @@ #include #include #include +#include #include #include #include #include -#include #ifdef SMP #include #endif @@ -260,7 +260,7 @@ cpu_exit(p) mtx_exit(&Giant, MTX_DEF | MTX_NOSWITCH); mtx_assert(&Giant, MA_NOTOWNED); cnt.v_swtch++; - cpu_switch(); + cpu_throw(); panic("cpu_exit"); } -- cgit v1.1