Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2017 14:02:33 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326167 - head/sys/modules/cloudabi32
Message-ID:  <201711241402.vAOE2XkX039812@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Fri Nov 24 14:02:32 2017
New Revision: 326167
URL: https://svnweb.freebsd.org/changeset/base/326167

Log:
  Pick the right vDSO file/linker flags when building cloudabi32.ko on ARM64.
  
  The recently imported cloudabi_vdso_armv6_on_64bit.S should be the vDSO
  for 32-bit processes when being run on FreeBSD/arm64. This vDSO ensures
  that all system call arguments are padded to 64 bits, so that they can
  be used by the kernel to call into most of the native implementations
  directly.

Modified:
  head/sys/modules/cloudabi32/Makefile

Modified: head/sys/modules/cloudabi32/Makefile
==============================================================================
--- head/sys/modules/cloudabi32/Makefile	Fri Nov 24 13:51:59 2017	(r326166)
+++ head/sys/modules/cloudabi32/Makefile	Fri Nov 24 14:02:32 2017	(r326167)
@@ -14,7 +14,11 @@ SRCS=	cloudabi32_fd.c cloudabi32_module.c cloudabi32_p
 OBJS=	cloudabi32_vdso_blob.o
 CLEANFILES=cloudabi32_vdso.o
 
-.if ${MACHINE_CPUARCH} == "amd64"
+.if ${MACHINE_CPUARCH} == "aarch64"
+VDSO_SRCS=${SYSDIR}/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S
+OUTPUT_TARGET=elf64-littleaarch64
+BINARY_ARCHITECTURE=aarch64
+.elif ${MACHINE_CPUARCH} == "amd64"
 VDSO_SRCS=${SYSDIR}/contrib/cloudabi/cloudabi_vdso_i686_on_64bit.S
 OUTPUT_TARGET=elf64-x86-64-freebsd
 BINARY_ARCHITECTURE=i386



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711241402.vAOE2XkX039812>