diff options
author | jhb <jhb@FreeBSD.org> | 2001-04-17 02:46:13 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-04-17 02:46:13 +0000 |
commit | 9a897f488760e8afa7aa8039a57c9b21cfbbf68d (patch) | |
tree | 6d2ede9273514b77a21516b53a29cd7a5800f14e | |
parent | 16fab762d5bb477657c23833b65396245294739a (diff) | |
download | FreeBSD-src-9a897f488760e8afa7aa8039a57c9b21cfbbf68d.zip FreeBSD-src-9a897f488760e8afa7aa8039a57c9b21cfbbf68d.tar.gz |
Add a cpu_throw() function that secondary CPU's can use for their first
context switch.
-rw-r--r-- | sys/alpha/alpha/swtch.s | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/alpha/alpha/swtch.s b/sys/alpha/alpha/swtch.s index 1935c3e..7c12165 100644 --- a/sys/alpha/alpha/swtch.s +++ b/sys/alpha/alpha/swtch.s @@ -87,6 +87,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. */ |