Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Provide _LP64 definition if we are generating LP64 binar...



details:   https://anonhg.NetBSD.org/src/rev/7bdb4273414c
branches:  trunk
changeset: 526379:7bdb4273414c
user:      eeh <eeh%NetBSD.org@localhost>
date:      Fri May 03 00:06:55 2002 +0000

description:
Provide _LP64 definition if we are generating LP64 binaries.

diffstat:

 sys/arch/alpha/conf/std.alpha    |  3 ++-
 sys/arch/alpha/include/types.h   |  5 ++++-
 sys/arch/sparc64/include/types.h |  5 ++++-
 sys/arch/x86_64/conf/std.x86_64  |  3 ++-
 sys/arch/x86_64/include/types.h  |  5 ++++-
 sys/conf/files                   |  8 +++++++-
 6 files changed, 23 insertions(+), 6 deletions(-)

diffs (107 lines):

diff -r ff2452fe029a -r 7bdb4273414c sys/arch/alpha/conf/std.alpha
--- a/sys/arch/alpha/conf/std.alpha     Fri May 03 00:04:07 2002 +0000
+++ b/sys/arch/alpha/conf/std.alpha     Fri May 03 00:06:55 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: std.alpha,v 1.19 2000/06/22 20:27:49 fvdl Exp $
+# $NetBSD: std.alpha,v 1.20 2002/05/03 00:06:55 eeh Exp $
 #
 # Standard/required configuration info for NetBSD/alpha.
 
@@ -10,3 +10,4 @@
 options        EXEC_ECOFF      # (native) ECOFF binary support
 options        EXEC_ELF64      # (native) ELF64 binary support
 options        EXEC_SCRIPT     # shell script support
+options        _LP64           # Always define this since we're 64-bit.
diff -r ff2452fe029a -r 7bdb4273414c sys/arch/alpha/include/types.h
--- a/sys/arch/alpha/include/types.h    Fri May 03 00:04:07 2002 +0000
+++ b/sys/arch/alpha/include/types.h    Fri May 03 00:06:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.22 2002/02/28 03:17:24 simonb Exp $ */
+/* $NetBSD: types.h,v 1.23 2002/05/03 00:06:56 eeh Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -49,6 +49,9 @@
 
 /* NB: This should probably be if defined(_KERNEL) */
 #if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
+#ifndef _LP64
+#define        _LP64   1
+#endif
 typedef unsigned long  paddr_t;
 typedef unsigned long  psize_t;
 typedef unsigned long  vaddr_t;
diff -r ff2452fe029a -r 7bdb4273414c sys/arch/sparc64/include/types.h
--- a/sys/arch/sparc64/include/types.h  Fri May 03 00:04:07 2002 +0000
+++ b/sys/arch/sparc64/include/types.h  Fri May 03 00:06:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.19 2002/02/28 03:17:31 simonb Exp $ */
+/*     $NetBSD: types.h,v 1.20 2002/05/03 00:06:56 eeh Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -79,6 +79,9 @@
 typedef vaddr_t                        vsize_t;
 #ifdef SUN4U
 #ifdef __arch64__
+#ifndef _LP64
+#define        _LP64   1       /* Should this be 64? */
+#endif
 typedef unsigned long int      paddr_t;
 #else
 /* LONGLONG */
diff -r ff2452fe029a -r 7bdb4273414c sys/arch/x86_64/conf/std.x86_64
--- a/sys/arch/x86_64/conf/std.x86_64   Fri May 03 00:04:07 2002 +0000
+++ b/sys/arch/x86_64/conf/std.x86_64   Fri May 03 00:06:55 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: std.x86_64,v 1.2 2001/11/20 12:56:43 lukem Exp $
+# $NetBSD: std.x86_64,v 1.3 2002/05/03 00:06:56 eeh Exp $
 #
 # standard, required NetBSD/x86_64 'options'
 
@@ -6,3 +6,4 @@
 
 options        EXEC_ELF64      # exec ELF binaries
 options        EXEC_SCRIPT     # exec #! scripts
+options        _LP64           # This is a 64-bit architecture
diff -r ff2452fe029a -r 7bdb4273414c sys/arch/x86_64/include/types.h
--- a/sys/arch/x86_64/include/types.h   Fri May 03 00:04:07 2002 +0000
+++ b/sys/arch/x86_64/include/types.h   Fri May 03 00:06:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.2 2002/02/28 03:17:32 simonb Exp $ */
+/*     $NetBSD: types.h,v 1.3 2002/05/03 00:06:56 eeh Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -49,6 +49,9 @@
 
 /* NB: This should probably be if defined(_KERNEL) */
 #if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
+#ifndef _LP64
+#define        _LP64   1
+#endif
 typedef unsigned long  paddr_t;
 typedef unsigned long  psize_t;
 typedef unsigned long  vaddr_t;
diff -r ff2452fe029a -r 7bdb4273414c sys/conf/files
--- a/sys/conf/files    Fri May 03 00:04:07 2002 +0000
+++ b/sys/conf/files    Fri May 03 00:06:55 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.524 2002/05/02 17:55:48 thorpej Exp $
+#      $NetBSD: files,v 1.525 2002/05/03 00:06:56 eeh Exp $
 
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
@@ -41,6 +41,12 @@
                                EXEC_ELF64 EXEC_MACHO EXEC_SCRIPT
                                EXEC_ELF_NOTELESS
 
+# DO NOT defflag the _LP64.  There is no point.  LP64 and ILP32 should
+# be completely different object code formats and require a complete
+# recompile anyway.
+#
+#no defflag                    _LP64
+
 # compatibility options
 #
 defflag                                COMPAT_FREEBSD



Home | Main Index | Thread Index | Old Index