Date: Wed, 19 Jul 2017 09:30:23 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: dtrace on big endian Message-ID: <890580.31867.qm@web101719.mail.ssk.yahoo.co.jp>
next in thread | raw e-mail | index | archive | help
Hi.=0A=0AI try to build dtrace kernel mips big endian target(Atheros).=0A= =0AI have build error on dtrace_fbt. I make patch. Is this correct ?=0A=0Ad= iff --git a/sys/cddl/dev/fbt/mips/fbt_isa.c b/sys/cddl/dev/fbt/mips/fbt_isa= .c=0Aindex a4e9e8b..d7a8562 100644=0A--- a/sys/cddl/dev/fbt/mips/fbt_isa.c= =0A+++ b/sys/cddl/dev/fbt/mips/fbt_isa.c=0A@@ -59,7 +59,12 @@ fbt_invop(uin= tptr_t addr, struct trapframe *frame, uintptr_t=A0=0Arval)=0A=A0=0A=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 dtrace_probe(fbt->fbtp_id, frame->a= 0,=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 frame->a1, fra= me->a2,=0A- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 frame->a3, = frame->a4);=0A+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 frame->= a3,=0A+#if defined(__mips_n32) || defined(__mips_n64)=0A+ =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 frame->a4);=0A+#else=0A+ =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 frame->t0);=0A+#endif=0A=A0=0A=A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 cpu->cpu_dtrace_caller =3D 0;= =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return (fbt->fbtp_savedv= al);=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?890580.31867.qm>