Date: Fri, 20 Apr 2012 23:01:36 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r234517 - head/sys/powerpc/aim Message-ID: <201204202301.q3KN1aAq059898@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Fri Apr 20 23:01:36 2012 New Revision: 234517 URL: http://svn.freebsd.org/changeset/base/234517 Log: Make sure all pending operations have completed on the existing thread before (potentially) migrating it to a different CPU. MFC after: 5 days Modified: head/sys/powerpc/aim/swtch32.S head/sys/powerpc/aim/swtch64.S Modified: head/sys/powerpc/aim/swtch32.S ============================================================================== --- head/sys/powerpc/aim/swtch32.S Fri Apr 20 23:00:37 2012 (r234516) +++ head/sys/powerpc/aim/swtch32.S Fri Apr 20 23:01:36 2012 (r234517) @@ -113,6 +113,7 @@ ENTRY(cpu_switch) mr %r3,%r14 /* restore old thread ptr */ bl pmap_deactivate /* Deactivate the current pmap */ + sync /* Make sure all of that finished */ stw %r16,TD_LOCK(%r14) /* ULE: update old thread's lock */ cpu_switchin: Modified: head/sys/powerpc/aim/swtch64.S ============================================================================== --- head/sys/powerpc/aim/swtch64.S Fri Apr 20 23:00:37 2012 (r234516) +++ head/sys/powerpc/aim/swtch64.S Fri Apr 20 23:01:36 2012 (r234517) @@ -139,6 +139,7 @@ ENTRY(cpu_switch) addi %r1,%r1,48 + sync /* Make sure all of that finished */ std %r16,TD_LOCK(%r14) /* ULE: update old thread's lock */ cpu_switchin:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204202301.q3KN1aAq059898>