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

[Minios-devel] [UNIKRAFT/LIBCXX PATCH 1/1] Changes for ARM64 support


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Tue, 14 Jan 2020 16:02:58 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UEOAGIvzE/zhK7cQYz+BpZD0HPpGf3Okjh7gtpuS2uk=; b=DYURM5LMwo4HzAbLXDYP230L58rbSGTTv/tV7/8vVx0+xgZalMWfJyePnXcBfRczkfpWGmbI5eQ6NGfw+KtXXUbobGVTg9DYxt/ijSosAteNb2RBEK4Nam9ucej/Dr5VgnMNyznI6C/I4Lm24OKtTPEWIi12V5C0zzBlhxDg5ZAH654J7wahNhsdE3zb2XJbpEWajlWj3aVhXKzjRlTswak6ybR4ALMGViocrLwisMlb4cvRHK6ZSefAo2J1HbjWw7AUK5rSnjFObaIdzg0MCi0peQzMDtGppMqkOId2VPAYVaurWYShwy91i/g3kf14rEwM6e1231oHY1hxoUtJyg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f75GtGmfFgaNqicKUs5PU0cJcDOGcHdTEYHO1er5t3bu8iRW+YBeeMhOI80esiX3oq2cJtJFTJrIs9peH1s4CY84BPhbXdZsiS8gyIlQRMOJabnDpoe6UCGPBwjW/g3jGGGmzsmPFheOm//B/vR9SErMMW1heV8Dn9RHCNOSYBYm3vRntIyztcVzG4dp8rj6pQN3kVtTPeV017o9M1dE3xvA+v5hgxqqwLj5xJm3S0WNCY/XRsHRP+P1k9ylC5QDxmKawIRuCdEFb5MjhxazRwVLNM0fWt8NLFXvzPvhSe29cMkGLoP4jet9p+vv6HrrQDyXvZ/OES5/r4/jHZv6xw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 14 Jan 2020 16:03:14 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVyvQXDNT3mMRFFkSg8mDY3a+DcQ==
  • Thread-topic: [UNIKRAFT/LIBCXX PATCH 1/1] Changes for ARM64 support

In order to compile under ARM64 we remove the definitions of __x86_64__
__FLT16_MANT_DIG__.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 Makefile.uk               | 4 +---
 include/__config_unikraft | 3 +++
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile.uk b/Makefile.uk
index f4543a2..6f5f37c 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -91,11 +91,9 @@ CXXINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/utils
 
################################################################################
 # Global flags
 
################################################################################
-CONFIG_FLAGS   += -D LIBCXX_BUILDING_LIBCXXABI         \
-               -D __x86_64__ -D _LIBCPP_STD_VER=15     \
+CONFIG_FLAGS   += -D LIBCXX_BUILDING_LIBCXXABI -D _LIBCPP_STD_VER=15           
\
                -D _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE -D __DYNAMIC_REENT__     
\
 
-
 ifdef CONFIG_CXX_THREADS
 CONFIG_FLAGS += -D__linux__ -D_LIBCPP_HAS_THREAD_API_PTHREAD
 else
diff --git a/include/__config_unikraft b/include/__config_unikraft
index d67a232..930e3d8 100644
--- a/include/__config_unikraft
+++ b/include/__config_unikraft
@@ -14,3 +14,6 @@
 #define _LIBCPP_BUILDING_LIBRARY
 #endif
 
+#if defined( __arm__) || defined(__ARM_64__)
+#undef __FLT16_MANT_DIG__
+#endif
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.