svn commit: r211484 -
head/sys/cddl/contrib/opensolaris/uts/common/sys
Warner Losh
imp at FreeBSD.org
Thu Aug 19 03:31:27 UTC 2010
Author: imp
Date: Thu Aug 19 03:31:26 2010
New Revision: 211484
URL: http://svn.freebsd.org/changeset/base/211484
Log:
First cut at mips n64 ABI support
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h
Modified: head/sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h Thu Aug 19 03:19:26 2010 (r211483)
+++ head/sys/cddl/contrib/opensolaris/uts/common/sys/isa_defs.h Thu Aug 19 03:31:26 2010 (r211484)
@@ -403,6 +403,25 @@ extern "C" {
#define _INT_ALIGNMENT 4
#define _FLOAT_ALIGNMENT 4
#define _FLOAT_COMPLEX_ALIGNMENT 4
+#if defined(__mips_n64)
+#define _LONG_ALIGNMENT 8
+#define _LONG_LONG_ALIGNMENT 8
+#define _DOUBLE_ALIGNMENT 8
+#define _DOUBLE_COMPLEX_ALIGNMENT 8
+#define _LONG_DOUBLE_ALIGNMENT 8
+#define _LONG_DOUBLE_COMPLEX_ALIGNMENT 8
+#define _POINTER_ALIGNMENT 8
+#define _MAX_ALIGNMENT 8
+#define _ALIGNMENT_REQUIRED 0
+
+#define _LONG_LONG_ALIGNMENT_32 _INT_ALIGNMENT
+/*
+ * Define the appropriate "implementation choices".
+ */
+#if !defined(_LP64)
+#define _LP64
+#endif
+#else
#define _LONG_ALIGNMENT 4
#define _LONG_LONG_ALIGNMENT 4
#define _DOUBLE_ALIGNMENT 4
@@ -422,6 +441,7 @@ extern "C" {
#if !defined(_I32LPx) && defined(_KERNEL)
#define _I32LPx
#endif
+#endif
#define _SUNOS_VTOC_16
#define _DMA_USES_PHYSADDR
#define _FIRMWARE_NEEDS_FDISK
More information about the svn-src-all
mailing list