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

[Minios-devel] [UNIKRAFT/LIBCOMPILER-RT 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:08:19 +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=o3Vw/GAqX4FkY3tI3CvMi8TpjSGO/vsR6hFMC04NHSw=; b=I0m2/UUWSYsCeNjZFVvZY1RxT0gtl1NzO0eS9AtWrDuK8ztDucozvygQrS6lWtvDilxip04BMp9nkpe7gGM/SYXTnEpUX2rRwt3jBm9A0jmdUJoD42VCHD9hnxjZz4qQkiCB2Yz1BuZPmU8UEYgjA6hfhDlLl4psWZMz/kTPEhCyetFxLH06M1JbSHqGKVLwy6/KNdbo4ktgcs45gAY2uCLAsUgwlpBf/EWOB4UVQgwjfJMFTSY4calnOZNTnOG8gFjLsTSfQ86QMoN2IT2IXRcobhiDllbCSjm97k1ztzYto357iJ+g2D2q0YDoXWkeW5KayBEzNGtHUeU66qWTdQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MEzehrhAoQoq6CaSDusDqlIpKOntuJoH9CQMIXmzkxjiKLo7+9ywGP5JCXUSmUoxjczv1GLQKS5Ghc27ivfUGjxKKpMzZSAugOJEIwu3LNCbDo3/IsL2SnqeWqN7lxn/NkNlw/6aUW1ZKHAZABzllwAMIM9/FpbAIS0WSeo6zvr/qIwB8G7764Hcq0H4hy6yMMCZq83Pljf99VCR/CMpJpg3wBOpPYb3mjKhxbCLSHSpHwXR2xmC4m5wau1ygL1v7QnG1+6VzNIhhO7D+ua2BHuAyBHceXoie3/Nt8X0ahR668BpHgJiBwSGXXGHc2HPiR3GJaVqhXZikbEVnpTRKA==
  • 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:08:27 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVyvTW3iKM64xf4UCrmw1NP24gDQ==
  • Thread-topic: [UNIKRAFT/LIBCOMPILER-RT PATCH 1/1] Changes for ARM64 support

This patch makes the minimum amount of changes needed to support ARM64.
Now we compile the cpu_model.c source file only under x86-64.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 Config.uk   | 1 +
 Makefile.uk | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Config.uk b/Config.uk
index 7b0cfc7..bf576fa 100644
--- a/Config.uk
+++ b/Config.uk
@@ -1,5 +1,6 @@
 menuconfig LIBCOMPILER_RT
     bool " compiler-rt - runtime support"
+    select UKSYSINFO
     default n
 
 if LIBCOMPILER_RT
diff --git a/Makefile.uk b/Makefile.uk
index 558a03e..b929f6a 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -69,9 +69,6 @@ CXXINCLUDES-$(CONFIG_LIBCOMPILER_RT) += 
-I$(LIBCOMPILER_RT_SRC)/include
 
################################################################################
 # Global flags
 
################################################################################
-CONFIG_FLAGS   += -D__x86_64__
-LIBCOMPILER_RT_CFLAGS-y    +=  $(CONFIG_FLAGS)
-LIBCOMPILER_RT_CXXFLAGS-y    +=  $(CONFIG_FLAGS)
 
 LIBCOMPILER_RT_SUPPRESS_FLAGS += -Wno-unused-parameter
 LIBCOMPILER_RT_CFLAGS-y   += $(LIBCOMPILER_RT_SUPPRESS_FLAGS)
@@ -101,7 +98,7 @@ LIBCOMPILER_RT_SRCS-y += 
$(LIBCOMPILER_RT_SRC)/lib/builtins/fixunsdfdi.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/udivmodti4.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/floattisf.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/mulodi4.c
-LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/cpu_model.c
+LIBCOMPILER_RT_SRCS-$(CONFIG_ARCH_X86_64) += 
$(LIBCOMPILER_RT_SRC)/lib/builtins/cpu_model.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/fixunsxfsi.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/fixunstfdi.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/extendsftf2.c
@@ -235,6 +232,9 @@ LIBCOMPILER_RT_SRCS-y += 
$(LIBCOMPILER_RT_SRC)/lib/builtins/fixsfdi.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/fixdfti.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/floatdidf.c
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/extendsfdf2.c
+LIBCOMPILER_RT_SRCS-$(CONFIG_ARCH_X86_64) += 
$(LIBCOMPILER_RT_SRC)/lib/builtins/x86_64/chkstk2.S
+LIBCOMPILER_RT_SRCS-$(CONFIG_ARCH_X86_64) += 
$(LIBCOMPILER_RT_SRC)/lib/builtins/x86_64/chkstk.S
+
 ifdef CONFIG_LIBCOMPILER_RT_ATOMIC
 LIBCOMPILER_RT_SRCS-y += $(LIBCOMPILER_RT_SRC)/lib/builtins/atomic.c
 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®.