Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2019 18:53:04 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r349672 - stable/12/sys/powerpc/powerpc
Message-ID:  <201907031853.x63Ir40H047038@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Wed Jul  3 18:53:04 2019
New Revision: 349672
URL: https://svnweb.freebsd.org/changeset/base/349672

Log:
  MFC r344958,r344960,r344961
  
  r344958: powerpc: Print data address register on alignment exceptions
  r344960: powerpc: Print trap frame address for fatal traps
  r344961: powerpc: Print trap frame address in ddb backtraces

Modified:
  stable/12/sys/powerpc/powerpc/db_trace.c
  stable/12/sys/powerpc/powerpc/trap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/powerpc/powerpc/db_trace.c
==============================================================================
--- stable/12/sys/powerpc/powerpc/db_trace.c	Wed Jul  3 18:46:39 2019	(r349671)
+++ stable/12/sys/powerpc/powerpc/db_trace.c	Wed Jul  3 18:53:04 2019	(r349672)
@@ -276,7 +276,7 @@ db_backtrace(struct thread *td, db_addr_t fp, int coun
 			if (tf->exc == EXC_DSI)
 				db_printf(" sr=%#x",
 				    (uint32_t)tf->cpu.aim.dsisr);
-			db_printf("\n");
+			db_printf(" frame=%p\n", tf);
 			stackframe = (db_addr_t) tf->fixreg[1];
 			if (kernel_only && (tf->srr1 & PSL_PR))
 				break;

Modified: stable/12/sys/powerpc/powerpc/trap.c
==============================================================================
--- stable/12/sys/powerpc/powerpc/trap.c	Wed Jul  3 18:46:39 2019	(r349671)
+++ stable/12/sys/powerpc/powerpc/trap.c	Wed Jul  3 18:53:04 2019	(r349672)
@@ -515,6 +515,7 @@ printtrap(u_int vector, struct trapframe *frame, int i
 	case EXC_DSE:
 	case EXC_DSI:
 	case EXC_DTMISS:
+	case EXC_ALI:
 		printf("   virtual address = 0x%" PRIxPTR "\n", frame->dar);
 		break;
 	case EXC_ISE:
@@ -532,6 +533,7 @@ printtrap(u_int vector, struct trapframe *frame, int i
 	printf("   current msr     = 0x%" PRIxPTR "\n", mfmsr());
 	printf("   lr              = 0x%" PRIxPTR " (0x%" PRIxPTR ")\n",
 	    frame->lr, frame->lr - (register_t)(__startkernel - KERNBASE));
+	printf("   frame           = %p\n", frame);
 	printf("   curthread       = %p\n", curthread);
 	if (curthread != NULL)
 		printf("          pid = %d, comm = %s\n",



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