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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to