]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/include/mach.h
sega(1): fix keys (thanks bigato)
[plan9front.git] / sys / include / mach.h
old mode 100755 (executable)
new mode 100644 (file)
index dd37bd9..78c3ab0
@@ -17,6 +17,7 @@
  *             powerpc,
  *             powerpc64
  *             alpha
+ *             arm64
  */
 enum
 {
@@ -36,6 +37,7 @@ enum
        MSPARC64,
        MAMD64,
        MPOWER64,
+       MARM64,
                                /* types of executables */
        FNONE = 0,              /* unidentified */
        FMIPS,                  /* v.out */
@@ -65,6 +67,8 @@ enum
        FAMD64B,                /* 6.out bootable */
        FPOWER64,               /* 9.out */
        FPOWER64B,              /* 9.out bootable */
+       FARM64,                 /* arm64 */
+       FARM64B,                /* arm64 bootable */
 
        ANONE = 0,              /* dissembler types */
        AMIPS,
@@ -82,6 +86,7 @@ enum
        ASPARC64,
        AAMD64,
        APOWER64,
+       AARM64,
                                /* object file types */
        Obj68020 = 0,           /* .2 */
        ObjSparc,               /* .k */
@@ -99,6 +104,7 @@ enum
        ObjAmd64,               /* .6 */
        ObjSpim,                /* .0 */
        ObjPower64,             /* .9 */
+       ObjArm64,               /* .4? */
        Maxobjtype,
 
        CNONE  = 0,             /* symbol table classes */
@@ -124,6 +130,7 @@ struct Map {
        struct segment {                /* per-segment map */
                char    *name;          /* the segment name */
                int     fd;             /* file descriptor */
+               long    (*read)(int, void *, long, vlong);
                int     inuse;          /* in use - not in use */
                int     cache;          /* should cache reads? */
                uvlong  b;              /* base */