From owner-svn-src-all@freebsd.org Fri Dec 23 02:57:20 2016 Return-Path: Delivered-To: svn-src-all@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 8402EC8DD20; Fri, 23 Dec 2016 02:57:20 +0000 (UTC) (envelope-from jhibbits@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 52A1C1CB8; Fri, 23 Dec 2016 02:57:20 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBN2vJfl085714; Fri, 23 Dec 2016 02:57:19 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBN2vJUm085713; Fri, 23 Dec 2016 02:57:19 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201612230257.uBN2vJUm085713@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Fri, 23 Dec 2016 02:57:19 +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: r310438 - stable/11/sys/cddl/dev/dtrace/powerpc X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2016 02:57:20 -0000 Author: jhibbits Date: Fri Dec 23 02:57:19 2016 New Revision: 310438 URL: https://svnweb.freebsd.org/changeset/base/310438 Log: MFC r303796: Two fixups for dtrace * Use the right incantation to get the next stack pointer. * Clear EE using the correct instruction sequence. Modified: stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S ============================================================================== --- stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S Fri Dec 23 02:57:00 2016 (r310437) +++ stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S Fri Dec 23 02:57:19 2016 (r310438) @@ -67,7 +67,13 @@ dtrace_icookie_t dtrace_interrupt_disabl */ ASENTRY_NOPROF(dtrace_interrupt_disable) mfmsr %r3 - andi. %r0,%r3,~PSL_EE@l +#ifdef __powerpc64__ + /* Two-instruction sequence to clear EE flag */ + rldicl %r0,%r3,48,1 + rotldi %r0,%r0,16 +#else + rlwinm %r0,%r3,0,~PSL_EE /* Clear EE flag */ +#endif mtmsr %r0 blr END(dtrace_interrupt_disable) Modified: stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c ============================================================================== --- stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c Fri Dec 23 02:57:00 2016 (r310437) +++ stable/11/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c Fri Dec 23 02:57:19 2016 (r310438) @@ -545,7 +545,7 @@ dtrace_getstackdepth(int aframes) else aframes--; osp = sp; - sp = *(uintptr_t *)sp; + sp = dtrace_next_sp(sp); } if (depth < aframes) return (0);