Date: Sun, 22 Dec 2013 00:04:51 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259699 - head/sys/powerpc/include Message-ID: <201312220004.rBM04pBK073842@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312220004.rBM04pBK073842>