changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: ktrace: arm64 support

changeset 7195: 8c8392fe3e79
parent 7194: 7188263232f2
child 7196: 9a4da3139862
author: cinap_lenrek@felloff.net
date: Fri, 03 May 2019 21:16:23 +0200
files: sys/src/cmd/ktrace.c
description: ktrace: arm64 support
     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 	}