Add a cpu_throw() function that secondary CPU's can use for their first

context switch.
This commit is contained in:
jhb 2001-04-17 02:46:13 +00:00
parent 16fab762d5
commit 9a897f4887

View File

@ -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.