Message ID | 1402246651-71099-11-git-send-email-sbruno@freebsd.org |
---|---|
State | New |
Headers | show |
On 8 June 2014 17:57, Sean Bruno <sbruno@freebsd.org> wrote: "for future use" implies it should go in the patch (or at least the same patch series) as the code that uses these new defines :-) thanks -- PMM
diff --git a/bsd-user/i386/syscall.h b/bsd-user/i386/syscall.h index 8028fc8..52de302 100644 --- a/bsd-user/i386/syscall.h +++ b/bsd-user/i386/syscall.h @@ -178,5 +178,7 @@ struct target_vm86plus_struct { #define UNAME_MACHINE "i386" +#define TARGET_HW_MACHINE UNAME_MACHINE +#define TARGET_HW_MACHINE_ARCH UNAME_MACHINE #endif /* ! _I386_SYSCALL_H_ */ diff --git a/bsd-user/sparc/syscall.h b/bsd-user/sparc/syscall.h index 7ed2152..3a5b1e2 100644 --- a/bsd-user/sparc/syscall.h +++ b/bsd-user/sparc/syscall.h @@ -27,6 +27,8 @@ struct target_pt_regs { }; #define UNAME_MACHINE "sun4" +#define TARGET_HW_MACHINE "sparc" +#define TARGET_HW_MACHINE_ARCH "sparc" #define TARGET_SPARC_UTRAP_INSTALL 1 #define TARGET_SPARC_SIGTRAMP_INSTALL 2 diff --git a/bsd-user/sparc64/syscall.h b/bsd-user/sparc64/syscall.h index 8571092..58cc38d 100644 --- a/bsd-user/sparc64/syscall.h +++ b/bsd-user/sparc64/syscall.h @@ -27,6 +27,8 @@ struct target_pt_regs { }; #define UNAME_MACHINE "sun4u" +#define TARGET_HW_MACHINE "sparc" +#define TARGET_HW_MACHINE_ARCH "sparc64" #define TARGET_SPARC_UTRAP_INSTALL 1 #define TARGET_SPARC_SIGTRAMP_INSTALL 2 diff --git a/bsd-user/x86_64/syscall.h b/bsd-user/x86_64/syscall.h index 4e77235..4fff6a5 100644 --- a/bsd-user/x86_64/syscall.h +++ b/bsd-user/x86_64/syscall.h @@ -129,6 +129,8 @@ struct target_msqid64_ds { #define UNAME_MACHINE "x86_64" +#define TARGET_HW_MACHINE "amd64" +#define TARGET_HW_MACHINE_ARCH "amd64" #define TARGET_ARCH_SET_GS 0x1001 #define TARGET_ARCH_SET_FS 0x1002
Signed-off-by: Sean Bruno <sbruno@freebsd.org> --- bsd-user/i386/syscall.h | 2 ++ bsd-user/sparc/syscall.h | 2 ++ bsd-user/sparc64/syscall.h | 2 ++ bsd-user/x86_64/syscall.h | 2 ++ 4 files changed, 8 insertions(+)