changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/cmd/ktrace.c

revision 7195: 8c8392fe3e79
parent 6056: 881353bdacce
     1.1--- a/sys/src/cmd/ktrace.c
     1.2+++ b/sys/src/cmd/ktrace.c
     1.3@@ -109,6 +109,7 @@ main(int argc, char *argv[])
     1.4 	case V_MAGIC:	/* mips 3000 */
     1.5 	case M_MAGIC:	/* mips 4000 */
     1.6 	case E_MAGIC:	/* arm 7-something */
     1.7+	case R_MAGIC:	/* arm64 */
     1.8 	case Q_MAGIC:	/* powerpc */
     1.9 	case N_MAGIC:	/* mips 4000 LE */
    1.10 	case L_MAGIC:	/* dec alpha */
    1.11@@ -383,6 +384,7 @@ getval(uvlong a)
    1.12 		r = 0;
    1.13 		switch(fhdr.magic){
    1.14 		case S_MAGIC:
    1.15+		case R_MAGIC:
    1.16 			m = 0xffffffff00000000ULL;
    1.17 			break;
    1.18 		default:
    1.19@@ -394,6 +396,7 @@ getval(uvlong a)
    1.20 	}
    1.21 	switch(fhdr.magic){
    1.22 	case S_MAGIC:
    1.23+	case R_MAGIC:
    1.24 		r = (long)r;	// sign extend
    1.25 		break;
    1.26 	}