From owner-svn-ports-head@freebsd.org Wed Nov 1 20:23:36 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7AA10E638E5; Wed, 1 Nov 2017 20:23:36 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 56D9C8028C; Wed, 1 Nov 2017 20:23:36 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA1KNZlU001558; Wed, 1 Nov 2017 20:23:35 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA1KNZwd001556; Wed, 1 Nov 2017 20:23:35 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201711012023.vA1KNZwd001556@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Wed, 1 Nov 2017 20:23:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453314 - in head/java/openjdk8: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: in head/java/openjdk8: . files X-SVN-Commit-Revision: 453314 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2017 20:23:36 -0000 Author: jkim Date: Wed Nov 1 20:23:35 2017 New Revision: 453314 URL: https://svnweb.freebsd.org/changeset/ports/453314 Log: Add preliminary support for aarch64 with Zero. PR: 223231 Added: head/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp (contents, props changed) Modified: head/java/openjdk8/Makefile Modified: head/java/openjdk8/Makefile ============================================================================== --- head/java/openjdk8/Makefile Wed Nov 1 20:20:45 2017 (r453313) +++ head/java/openjdk8/Makefile Wed Nov 1 20:23:35 2017 (r453314) @@ -51,7 +51,7 @@ USE_AUTOTOOLS= autoconf BUILD_DEPENDS+= ${UNZIP_CMD}:archivers/unzip .endif -ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc powerpc64 +ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc powerpc64 WRKSRC= ${WRKDIR}/${PORTNAME} DOS2UNIX_FILES= jdk/src/bsd/doc/man/appletviewer.1 \ Added: head/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp Wed Nov 1 20:23:35 2017 (r453314) @@ -0,0 +1,41 @@ +--- hotspot/src/os/bsd/vm/os_bsd.cpp.orig 2014-03-04 02:52:13 UTC ++++ hotspot/src/os/bsd/vm/os_bsd.cpp +@@ -1452,6 +1452,10 @@ void * os::dll_load(const char *filename, char *ebuf, + #define EM_X86_64 62 /* AMD x86-64 */ + #endif + ++ #ifndef EM_AARCH64 ++ #define EM_AARCH64 183 /* ARM AARCH64 */ ++ #endif ++ + static const arch_t arch_array[]={ + {EM_386, EM_386, ELFCLASS32, ELFDATA2LSB, (char*)"IA 32"}, + {EM_486, EM_386, ELFCLASS32, ELFDATA2LSB, (char*)"IA 32"}, +@@ -1468,7 +1472,8 @@ void * os::dll_load(const char *filename, char *ebuf, + {EM_MIPS_RS3_LE, EM_MIPS_RS3_LE, ELFCLASS32, ELFDATA2LSB, (char*)"MIPSel"}, + {EM_MIPS, EM_MIPS, ELFCLASS32, ELFDATA2MSB, (char*)"MIPS"}, + {EM_PARISC, EM_PARISC, ELFCLASS32, ELFDATA2MSB, (char*)"PARISC"}, +- {EM_68K, EM_68K, ELFCLASS32, ELFDATA2MSB, (char*)"M68k"} ++ {EM_68K, EM_68K, ELFCLASS32, ELFDATA2MSB, (char*)"M68k"}, ++ {EM_AARCH64, EM_AARCH64, ELFCLASS64, ELFDATA2LSB, (char*)"AARCH64"}, + }; + + #if (defined IA32) +@@ -1485,6 +1490,8 @@ void * os::dll_load(const char *filename, char *ebuf, + static Elf32_Half running_arch_code=EM_PPC64; + #elif (defined __powerpc__) + static Elf32_Half running_arch_code=EM_PPC; ++ #elif (defined AARCH64) ++ static Elf32_Half running_arch_code=EM_AARCH64; + #elif (defined ARM) + static Elf32_Half running_arch_code=EM_ARM; + #elif (defined S390) +@@ -1501,7 +1508,7 @@ void * os::dll_load(const char *filename, char *ebuf, + static Elf32_Half running_arch_code=EM_68K; + #else + #error Method os::dll_load requires that one of following is defined:\ +- IA32, AMD64, IA64, __sparc, __powerpc__, ARM, S390, ALPHA, MIPS, MIPSEL, PARISC, M68K ++ AARCH64, IA32, AMD64, IA64, __sparc, __powerpc__, ARM, S390, ALPHA, MIPS, MIPSEL, PARISC, M68K + #endif + + // Identify compatability class for VM's architecture and library's architecture