svn commit: r259699 - head/sys/powerpc/include
Justin Hibbits
jhibbits at FreeBSD.org
Sun Dec 22 00:04:51 UTC 2013
Author: jhibbits
Date: Sun Dec 22 00:04:50 2013
New Revision: 259699
URL: http://svnweb.freebsd.org/changeset/base/259699
Log:
Set the PMC trapframe macros appropriately
MFC after: 2 weeks
Modified:
head/sys/powerpc/include/pmc_mdep.h
Modified: head/sys/powerpc/include/pmc_mdep.h
==============================================================================
--- head/sys/powerpc/include/pmc_mdep.h Sun Dec 22 00:04:03 2013 (r259698)
+++ head/sys/powerpc/include/pmc_mdep.h Sun Dec 22 00:04:50 2013 (r259699)
@@ -28,8 +28,8 @@ union pmc_md_pmc {
struct pmc_md_powerpc_pmc pm_powerpc;
};
-#define PMC_TRAPFRAME_TO_PC(TF) (0) /* Stubs */
-#define PMC_TRAPFRAME_TO_FP(TF) (0)
+#define PMC_TRAPFRAME_TO_PC(TF) ((TF)->srr0)
+#define PMC_TRAPFRAME_TO_FP(TF) ((TF)->fixreg[1])
#define PMC_TRAPFRAME_TO_SP(TF) (0)
#endif
More information about the svn-src-head
mailing list