svn commit: r338420 - stable/11/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Sat Sep 1 10:01:20 UTC 2018


Author: kib
Date: Sat Sep  1 10:01:19 2018
New Revision: 338420
URL: https://svnweb.freebsd.org/changeset/base/338420

Log:
  MFC r338313:
  Remove dead code in i386 cpu_throw().

Modified:
  stable/11/sys/i386/i386/swtch.s
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/i386/i386/swtch.s
==============================================================================
--- stable/11/sys/i386/i386/swtch.s	Sat Sep  1 09:59:46 2018	(r338419)
+++ stable/11/sys/i386/i386/swtch.s	Sat Sep  1 10:01:19 2018	(r338420)
@@ -74,16 +74,12 @@
  */
 ENTRY(cpu_throw)
 	movl	PCPU(CPUID), %esi
-	movl	4(%esp),%ecx			/* Old thread */
-	testl	%ecx,%ecx			/* no thread? */
-	jz	1f
 	/* release bit from old pm_active */
 	movl	PCPU(CURPMAP), %ebx
 #ifdef SMP
 	lock
 #endif
 	btrl	%esi, PM_ACTIVE(%ebx)		/* clear old */
-1:
 	movl	8(%esp),%ecx			/* New thread */
 	movl	TD_PCB(%ecx),%edx
 	movl	PCB_CR3(%edx),%eax


More information about the svn-src-stable-11 mailing list