Page MenuHomeFreeBSD

D62360.1796398670.diff
No OneTemporary

Authored By
Unknown
Size
1001 B
Referenced Files
None
Subscribers
None

D62360.1796398670.diff

diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
--- a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
+++ b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c
@@ -37,12 +37,12 @@
#include <sys/sysent.h>
#define OP(x) ((x) >> 26)
-#define OPX(x) (((x) >> 2) & 0x3FF)
+#define OPX(x) (((x) >> 1) & 0x3FF)
#define OP_BO(x) (((x) & 0x03E00000) >> 21)
#define OP_BI(x) (((x) & 0x001F0000) >> 16)
#define OP_RS(x) (((x) & 0x03E00000) >> 21)
#define OP_RA(x) (((x) & 0x001F0000) >> 16)
-#define OP_RB(x) (((x) & 0x0000F100) >> 11)
+#define OP_RB(x) (((x) & 0x0000F800) >> 11)
int
fasttrap_tracepoint_install(proc_t *p, fasttrap_tracepoint_t *tp)
@@ -154,7 +154,7 @@
tp->ftt_bi = OP_BI(instr);
break;
case 16: /* bclr */
- tp->ftt_type = FASTTRAP_T_BCTR;
+ tp->ftt_type = FASTTRAP_T_BLR;
tp->ftt_bo = OP_BO(instr);
tp->ftt_bi = OP_BI(instr);
break;

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 4, 3:37 PM (23 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42207879
Default Alt Text
D62360.1796398670.diff (1001 B)

Event Timeline