X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/21362eb3e66fd2c787aee132bce100a44d71a99c..4452a7af2eac33dbad800bcc91f2399d62c18f53:/bsd/machine/exec.h diff --git a/bsd/machine/exec.h b/bsd/machine/exec.h index dbdaf3053..6dd16564a 100644 --- a/bsd/machine/exec.h +++ b/bsd/machine/exec.h @@ -31,10 +31,21 @@ #ifndef _BSD_MACHINE_EXEC_H_ #define _BSD_MACHINE_EXEC_H_ +#include <sys/param.h> + +struct exec_archhandler { + char path[MAXPATHLEN]; + uint32_t fsid; + long fileid; +}; + +extern struct exec_archhandler exec_archhandler_ppc; +extern int set_archhandler(struct proc *p, int arch); +extern int grade_binary(cpu_type_t exectype, cpu_subtype_t execsubtype); #if defined (__ppc__) || defined (__ppc64__) #include "ppc/exec.h" -#elif defined (__i386__) +#elif defined (__i386__) || defined(__x86_64__) #include "i386/exec.h" #else #error architecture not supported