mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
ktrace: arm64 support
This commit is contained in:
parent
c57c8919e3
commit
4032db00a7
1 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,7 @@ main(int argc, char *argv[])
|
|||
case V_MAGIC: /* mips 3000 */
|
||||
case M_MAGIC: /* mips 4000 */
|
||||
case E_MAGIC: /* arm 7-something */
|
||||
case R_MAGIC: /* arm64 */
|
||||
case Q_MAGIC: /* powerpc */
|
||||
case N_MAGIC: /* mips 4000 LE */
|
||||
case L_MAGIC: /* dec alpha */
|
||||
|
@ -383,6 +384,7 @@ getval(uvlong a)
|
|||
r = 0;
|
||||
switch(fhdr.magic){
|
||||
case S_MAGIC:
|
||||
case R_MAGIC:
|
||||
m = 0xffffffff00000000ULL;
|
||||
break;
|
||||
default:
|
||||
|
@ -394,6 +396,7 @@ getval(uvlong a)
|
|||
}
|
||||
switch(fhdr.magic){
|
||||
case S_MAGIC:
|
||||
case R_MAGIC:
|
||||
r = (long)r; // sign extend
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue