Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2018 10:01:19 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338420 - stable/11/sys/i386/i386
Message-ID:  <201809011001.w81A1JgW039340@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809011001.w81A1JgW039340>