diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-02-03 20:50:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-02-03 20:50:58 +0000 |
commit | 4f4576936dee134a0058643b4680d432e8b5e118 (patch) | |
tree | 18a5f8665e6953295830157a7aacdf6e43af2104 /sys/arch/loongson | |
parent | 24e03fe005f782f4bcaae859840a6733a22ce867 (diff) |
Provide a value for MACHINE_CPU, to let the build machinery reuse the existing
mips64 (big endian) code. Endian-specific differences are handled within mips64
code with proper cpp tests.
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r-- | sys/arch/loongson/include/param.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/loongson/include/param.h b/sys/arch/loongson/include/param.h index 6b2eebaad89..46e9a3190e3 100644 --- a/sys/arch/loongson/include/param.h +++ b/sys/arch/loongson/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.1 2009/12/25 21:04:47 miod Exp $ */ +/* $OpenBSD: param.h,v 1.2 2010/02/03 20:50:57 miod Exp $ */ /* public domain */ #ifndef _MACHINE_PARAM_H_ @@ -8,6 +8,9 @@ #define _MACHINE loongson #define MACHINE_ARCH "mips64el" #define _MACHINE_ARCH mips64el +/* not the canonical endianness */ +#define MACHINE_CPU "mips64" +#define _MACHINE_CPU mips64 #define MID_MACHINE MID_MIPS64 |