From owner-svn-src-all@freebsd.org Thu Aug 27 03:44:06 2015 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 E85279C28DD; Thu, 27 Aug 2015 03:44:06 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 D93CA114E; Thu, 27 Aug 2015 03:44:06 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7R3i6kY020407; Thu, 27 Aug 2015 03:44:06 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7R3i6VA020406; Thu, 27 Aug 2015 03:44:06 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201508270344.t7R3i6VA020406@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Thu, 27 Aug 2015 03:44:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287188 - head/sys/powerpc/powerpc X-SVN-Group: head 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.20 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: Thu, 27 Aug 2015 03:44:07 -0000 Author: jhibbits Date: Thu Aug 27 03:44:06 2015 New Revision: 287188 URL: https://svnweb.freebsd.org/changeset/base/287188 Log: Use the macro definition for EXC_PGM_TRAP, instead of the magic number. Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c ============================================================================== --- head/sys/powerpc/powerpc/trap.c Thu Aug 27 02:59:48 2015 (r287187) +++ head/sys/powerpc/powerpc/trap.c Thu Aug 27 03:44:06 2015 (r287188) @@ -815,7 +815,7 @@ db_trap_glue(struct trapframe *frame) && (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC #ifdef AIM || (frame->exc == EXC_PGM - && (frame->srr1 & 0x20000)) + && (frame->srr1 & EXC_PGM_TRAP)) #else || (frame->exc == EXC_DEBUG) #endif @@ -827,7 +827,7 @@ db_trap_glue(struct trapframe *frame) if (*(uint32_t *)frame->srr0 == EXC_DTRACE) return (0); #ifdef AIM - if (type == EXC_PGM && (frame->srr1 & 0x20000)) { + if (type == EXC_PGM && (frame->srr1 & EXC_PGM_TRAP)) { #else if (frame->cpu.booke.esr & ESR_PTR) { #endif