From owner-svn-src-stable@freebsd.org Thu Oct 5 11:00:06 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63514E34AE4; Thu, 5 Oct 2017 11:00:06 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2CB816B536; Thu, 5 Oct 2017 11:00:06 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v95B055B002081; Thu, 5 Oct 2017 11:00:05 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v95B05G2002079; Thu, 5 Oct 2017 11:00:05 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201710051100.v95B05G2002079@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Thu, 5 Oct 2017 11:00:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r324299 - in stable/11/sys/i386: i386 include X-SVN-Group: stable-11 X-SVN-Commit-Author: kib X-SVN-Commit-Paths: in stable/11/sys/i386: i386 include X-SVN-Commit-Revision: 324299 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2017 11:00:06 -0000 Author: kib Date: Thu Oct 5 11:00:04 2017 New Revision: 324299 URL: https://svnweb.freebsd.org/changeset/base/324299 Log: MFC r324079: Do not return from interrupt using the POP_FRAME;iret instruction sequence, always jump to doreti. Modified: stable/11/sys/i386/i386/apic_vector.s stable/11/sys/i386/include/asmacros.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/i386/i386/apic_vector.s ============================================================================== --- stable/11/sys/i386/i386/apic_vector.s Thu Oct 5 10:47:04 2017 (r324298) +++ stable/11/sys/i386/i386/apic_vector.s Thu Oct 5 11:00:04 2017 (r324299) @@ -189,8 +189,7 @@ IDTVEC(xen_intr_upcall) SUPERALIGN_TEXT invltlb_ret: call as_lapic_eoi - POP_FRAME - iret + jmp doreti SUPERALIGN_TEXT IDTVEC(invltlb) @@ -274,10 +273,8 @@ IDTVEC(cpustop) call as_lapic_eoi call cpustop_handler + jmp doreti - POP_FRAME - iret - /* * Executed by a CPU when it receives an IPI_SUSPEND from another CPU. */ @@ -290,10 +287,8 @@ IDTVEC(cpususpend) call as_lapic_eoi call cpususpend_handler + jmp doreti - POP_FRAME - jmp doreti_iret - /* * Executed by a CPU when it receives a RENDEZVOUS IPI from another CPU. * @@ -314,7 +309,6 @@ IDTVEC(rendezvous) call smp_rendezvous_action call as_lapic_eoi - POP_FRAME - iret + jmp doreti #endif /* SMP */ Modified: stable/11/sys/i386/include/asmacros.h ============================================================================== --- stable/11/sys/i386/include/asmacros.h Thu Oct 5 10:47:04 2017 (r324298) +++ stable/11/sys/i386/include/asmacros.h Thu Oct 5 11:00:04 2017 (r324299) @@ -153,13 +153,6 @@ pushl $0 ; \ movw %fs,(%esp) -#define POP_FRAME \ - popl %fs ; \ - popl %es ; \ - popl %ds ; \ - popal ; \ - addl $4+4,%esp - /* * Access per-CPU data. */