From 9a897f488760e8afa7aa8039a57c9b21cfbbf68d Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 17 Apr 2001 02:46:13 +0000 Subject: [PATCH] Add a cpu_throw() function that secondary CPU's can use for their first context switch. --- sys/alpha/alpha/swtch.s | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/alpha/alpha/swtch.s b/sys/alpha/alpha/swtch.s index 1935c3ee3d6d..7c121654cdbd 100644 --- a/sys/alpha/alpha/swtch.s +++ b/sys/alpha/alpha/swtch.s @@ -86,6 +86,16 @@ Lsavectx1: LDGP(pv) IMPORT(Lev1map, 8) +/* + * cpu_throw() + * Switch to a new task discarding our current state. + */ +LEAF(cpu_throw, 0) + LDGP(pv) + mov zero, s0 /* ensure newproc != oldproc */ + CALL(Lcs1) + END(cpu_throw) + /* * cpu_switch() * Find the highest priority process and resume it.