@@ -510,6 +510,10 @@ public static NativeCode Active
510
510
return I386 ;
511
511
case Runtime . MachineType . x86_64 :
512
512
return X86_64 ;
513
+ case Runtime . MachineType . armv7l :
514
+ return Armv7l ;
515
+ case Runtime . MachineType . armv8 :
516
+ return Armv8 ;
513
517
default :
514
518
throw new NotImplementedException ( $ "No support for { Runtime . MachineName } ") ;
515
519
}
@@ -546,6 +550,34 @@ public static NativeCode Active
546
550
/// <see cref="NativeCode.X86_64"/>
547
551
/// </summary>
548
552
public static readonly NativeCode I386 = X86_64 ;
553
+
554
+ public static readonly NativeCode Armv7l = new NativeCode ( )
555
+ {
556
+ Return0 = 0 ,
557
+ Return1 = 0x08 ,
558
+ Code = new byte [ ]
559
+ {
560
+ 0xe3 , 0xa0 , 0x00 , 0x00 , // mov r0, #0
561
+ 0xe1 , 0x2f , 0xff , 0x1e , // bx lr
562
+
563
+ 0xe3 , 0xa0 , 0x00 , 0x01 , // mov r0, #1
564
+ 0xe1 , 0x2f , 0xff , 0x1e , // bx lr
565
+ }
566
+ } ;
567
+
568
+ public static readonly NativeCode Armv8 = new NativeCode ( )
569
+ {
570
+ Return0 = 0 ,
571
+ Return1 = 0x08 ,
572
+ Code = new byte [ ]
573
+ {
574
+ 0x52 , 0x80 , 0x00 , 0x00 , // mov w0, #0x0
575
+ 0xd6 , 0x5f , 0x03 , 0xc0 , // ret
576
+
577
+ 0x52 , 0x80 , 0x00 , 0x20 , // mov w0, #0x1
578
+ 0xd6 , 0x5f , 0x03 , 0xc0 , // ret
579
+ }
580
+ } ;
549
581
}
550
582
551
583
/// <summary>
0 commit comments