From: <ale...@us...> - 2014-05-22 10:47:07
|
Revision: 59617 http://sourceforge.net/p/firebird/code/59617 Author: alexpeshkoff Date: 2014-05-22 10:47:03 +0000 (Thu, 22 May 2014) Log Message: ----------- Arm64 port Modified Paths: -------------- firebird/trunk/configure.ac firebird/trunk/src/common/classes/DbImplementation.cpp firebird/trunk/src/common/common.h firebird/trunk/src/jrd/inf_pub.h Added Paths: ----------- firebird/trunk/builds/posix/prefix.linux_arm64 Added: firebird/trunk/builds/posix/prefix.linux_arm64 =================================================================== --- firebird/trunk/builds/posix/prefix.linux_arm64 (rev 0) +++ firebird/trunk/builds/posix/prefix.linux_arm64 2014-05-22 10:47:03 UTC (rev 59617) @@ -0,0 +1,27 @@ +# The contents of this file are subject to the Interbase Public +# License Version 1.0 (the "License"); you may not use this file +# except in compliance with the License. You may obtain a copy +# of the License at http://www.Inprise.com/IPL.html +# +# Software distributed under the License is distributed on an +# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express +# or implied. See the License for the specific language governing +# rights and limitations under the License. +# +# The Original Code was created by Inprise Corporation +# and its predecessors. Portions created by Inprise Corporation are +# Copyright (C) Inprise Corporation. +# +# All Rights Reserved. +# Contributor(s): ______________________________________. +# Start of file prefix.linux: $(VERSION) $(PLATFORM) +# 14 Apr 2008 Alan Barclay alan AT escribe.co.uk + + +#LD=@CXX@ + +#PROD_FLAGS=-ggdb -O3 -fno-omit-frame-pointer -DLINUX -pipe -MMD -fPIC +#DEV_FLAGS=-ggdb -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -p -fPIC -Wall -Wno-switch + +PROD_FLAGS=-O3 -DLINUX -DARM64 -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 +DEV_FLAGS=-ggdb -DLINUX -DARM64 -pipe -p -MMD -fPIC -Wall -fsigned-char -fmessage-length=0 -Wno-non-virtual-dtor Property changes on: firebird/trunk/builds/posix/prefix.linux_arm64 ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Modified: firebird/trunk/configure.ac =================================================================== --- firebird/trunk/configure.ac 2014-05-22 10:28:25 UTC (rev 59616) +++ firebird/trunk/configure.ac 2014-05-22 10:47:03 UTC (rev 59617) @@ -239,6 +239,17 @@ STD_EDITLINE=true ;; + aarch64*-*-linux*) // port was not tested + MAKEFILE_PREFIX=linux_arm64 + INSTALL_PREFIX=linux + PLATFORM=LINUX + AC_DEFINE(LINUX, 1, [Define this if OS is Linux]) + EDITLINE_FLG=Y + SHRLIB_EXT=so + STD_EDITLINE=true + STD_ICU=true + ;; + sparc*-*-linux* | sparc*-*-gnu* | sparc*-*-k*bsd*-gnu) MAKEFILE_PREFIX=linux_sparc32 INSTALL_PREFIX=linux Modified: firebird/trunk/src/common/classes/DbImplementation.cpp =================================================================== --- firebird/trunk/src/common/classes/DbImplementation.cpp 2014-05-22 10:28:25 UTC (rev 59616) +++ firebird/trunk/src/common/classes/DbImplementation.cpp 2014-05-22 10:47:03 UTC (rev 59617) @@ -46,6 +46,7 @@ static const UCHAR CpuSheb = 12; static const UCHAR CpuHppa = 13; static const UCHAR CpuAlpha = 14; +static const UCHAR CpuArm64 = 15; static const UCHAR OsWindows = 0; static const UCHAR OsLinux = 1; @@ -83,7 +84,8 @@ "SH", "SHEB", "HPPA", - "Alpha" + "Alpha", + "ARM64" }; const char* operatingSystem[] = { @@ -110,22 +112,22 @@ // This table lists pre-fb3 imlementation codes const UCHAR backwardTable[FB_NELEM(hardware) * FB_NELEM(operatingSystem)] = { -// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha -/* Windows */ 50, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* Linux */ 60, 66, 65, 69, 0, 71, 72, 75, 76, 79, 78, 80, 81, 82, 83, -/* Darwin */ 70, 73, 0, 63, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* Solaris */ 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* HPUX */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, -/* AIX */ 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* MVS */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* FreeBSD */ 61, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -/* NetBSD */ 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha ARM64 +/* Windows */ 50, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +/* Linux */ 60, 66, 65, 69, 0, 71, 72, 75, 76, 79, 78, 80, 81, 82, 83, 84, +/* Darwin */ 70, 73, 0, 63, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +/* Solaris */ 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +/* HPUX */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, +/* AIX */ 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +/* MVS */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +/* FreeBSD */ 61, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +/* NetBSD */ 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; const UCHAR backEndianess[FB_NELEM(hardware)] = { -// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha - 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0 +// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha ARM64 + 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0 }; } // anonymous namespace Modified: firebird/trunk/src/common/common.h =================================================================== --- firebird/trunk/src/common/common.h 2014-05-22 10:28:25 UTC (rev 59616) +++ firebird/trunk/src/common/common.h 2014-05-22 10:47:03 UTC (rev 59617) @@ -134,6 +134,10 @@ #define FB_CPU CpuArm #endif /* ARM */ +#ifdef ARM64 +#define FB_CPU CpuArm64 +#endif /* ARM64 */ + #ifdef sparc #define FB_CPU CpuUltraSparc #define RISC_ALIGNMENT Modified: firebird/trunk/src/jrd/inf_pub.h =================================================================== --- firebird/trunk/src/jrd/inf_pub.h 2014-05-22 10:28:25 UTC (rev 59616) +++ firebird/trunk/src/jrd/inf_pub.h 2014-05-22 10:47:03 UTC (rev 59617) @@ -215,6 +215,9 @@ isc_info_db_impl_linux_sh = 80, isc_info_db_impl_linux_sheb = 81, + isc_info_db_impl_linux_hppa = 82, + isc_info_db_impl_linux_alpha = 83, + isc_info_db_impl_linux_arm64 = 84, isc_info_db_impl_last_value // Leave this LAST! }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |