diff options
author | jhb <jhb@FreeBSD.org> | 2002-07-12 18:34:22 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-07-12 18:34:22 +0000 |
commit | 91bb8201eeae731e6d8b345d9d056ebc17c2d781 (patch) | |
tree | 33a8ab6acd4539515cf2c39bfebdda1839199e8a /sys/powerpc/aim | |
parent | ed7e4d6c5b6f82c819d9cda7df9eb9e3406f43a5 (diff) | |
download | FreeBSD-src-91bb8201eeae731e6d8b345d9d056ebc17c2d781.zip FreeBSD-src-91bb8201eeae731e6d8b345d9d056ebc17c2d781.tar.gz |
Set the thread state of the newly chosen to run thread to TDS_RUNNING in
choosethread() in MI C code instead of doing it in in assembly in all the
various cpu_switch() functions. This fixes problems on ia64 and sparc64.
Reviewed by: julian, peter, benno
Tested on: i386, alpha, sparc64
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/swtch.S | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/powerpc/aim/swtch.S b/sys/powerpc/aim/swtch.S index cf82169..e02367a 100644 --- a/sys/powerpc/aim/swtch.S +++ b/sys/powerpc/aim/swtch.S @@ -121,8 +121,6 @@ ENTRY(cpu_switch) /* thread to restore is in r3 */ .L2: - li %r15,TDS_RUNNING - stw %r15,TD_STATE(%r3) /* Set KSE state */ lwz %r3, TD_PCB(%r3) lmw %r12,PCB_CONTEXT(%r3) /* Load the non-volatile GP regs */ mr %r2,%r12 |