Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Use CPP symbols to determine the right ...
details: https://anonhg.NetBSD.org/src/rev/6fb459e9b5ed
branches: trunk
changeset: 790912:6fb459e9b5ed
user: matt <matt%NetBSD.org@localhost>
date: Sat Oct 26 18:07:52 2013 +0000
description:
Use CPP symbols to determine the right MACHINE_ARCH
diffstat:
sys/arch/arm/include/param.h | 58 ++++++++++++++++++++++++++++++++++++++++---
1 files changed, 53 insertions(+), 5 deletions(-)
diffs (78 lines):
diff -r 99259e4aaa6e -r 6fb459e9b5ed sys/arch/arm/include/param.h
--- a/sys/arch/arm/include/param.h Sat Oct 26 17:46:48 2013 +0000
+++ b/sys/arch/arm/include/param.h Sat Oct 26 18:07:52 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.18 2013/04/22 07:53:29 matt Exp $ */
+/* $NetBSD: param.h,v 1.19 2013/10/26 18:07:52 matt Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@@ -80,16 +80,64 @@
# define MACHINE "arm"
# ifndef __ARMEB__
# ifdef __ARM_EABI__
-# define _MACHINE_ARCH earm
-# define MACHINE_ARCH "earm"
+# ifdef __ARM_PCS_VFP
+# ifdef _ARM_ARCH_7
+# define _MACHINE_ARCH earmv7hf
+# define MACHINE_ARCH "earmv7hf"
+# elif defined(_ARM_ARCH_6)
+# define _MACHINE_ARCH earmv6hf
+# define MACHINE_ARCH "earmv6hf"
+# else
+# define _MACHINE_ARCH earmhf
+# define MACHINE_ARCH "earmhf"
+# endif
+# else
+# ifdef _ARM_ARCH_7
+# define _MACHINE_ARCH earmv7
+# define MACHINE_ARCH "earmv7"
+# elif defined(_ARM_ARCH_6)
+# define _MACHINE_ARCH earmv6
+# define MACHINE_ARCH "earmv6"
+# elif !defined(_ARM_ARCH_5T)
+# define _MACHINE_ARCH earmv4
+# define MACHINE_ARCH "earmv4"
+# else
+# define _MACHINE_ARCH earm
+# define MACHINE_ARCH "earm"
+# endif
+# endif
# else
# define _MACHINE_ARCH arm
# define MACHINE_ARCH "arm"
# endif
# else
# ifdef __ARM_EABI__
-# define _MACHINE_ARCH earmeb
-# define MACHINE_ARCH "earmeb"
+# ifdef __ARM_PCS_VFP
+# ifdef _ARM_ARCH_7
+# define _MACHINE_ARCH earmv7hfeb
+# define MACHINE_ARCH "earmv7hfeb"
+# elif defined(_ARM_ARCH_6)
+# define _MACHINE_ARCH earmv6hfeb
+# define MACHINE_ARCH "earmv6hfeb"
+# else
+# define _MACHINE_ARCH earmhfeb
+# define MACHINE_ARCH "earmhfeb"
+# endif
+# else
+# ifdef _ARM_ARCH_7
+# define _MACHINE_ARCH earmv7eb
+# define MACHINE_ARCH "earmv7eb"
+# elif defined(_ARM_ARCH_6)
+# define _MACHINE_ARCH earmv6eb
+# define MACHINE_ARCH "earmv6eb"
+# elif !defined(_ARM_ARCH_5T)
+# define _MACHINE_ARCH earmv4eb
+# define MACHINE_ARCH "earmv4eb"
+# else
+# define _MACHINE_ARCH earmeb
+# define MACHINE_ARCH "earmeb"
+# endif
+# endif
# else
# define _MACHINE_ARCH armeb
# define MACHINE_ARCH "armeb"
Home |
Main Index |
Thread Index |
Old Index