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

[Minios-devel] [UNIKRAFT/LIBCXXABI PATCH 1/1] Add config option for thread support


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Fri, 1 Nov 2019 11:46:54 +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=kwNhie/J5qlUf+dfNFVhzD3YBPWmv44TCi7kKJD39Jg=; b=IELDthlw32T8tMxG+96SRpNy/3c56MJ1MuPOwVsQyHU8uCT0guZuHvpHUtKqgU9qlu0PYdpVuKt6HFYG/O544466ESePu93toOCt4AD/1LNzREMXGjJk7qio5izi4qy2Jc2wzXz7udeJhEO3oc+XROHRF1ioGxgO4dmt0Kskwe7L9kbnPo4Nh8ICkwIDQi6/XBTKTNVzFbGEsD9t6XjzYs6+aKfniwgXNAvITNeDiIjAWSEbCT4GBs/r02DTHcgNy11nbgl+MUQO1oHNn1R2eIay8d5Yhg8g+XtKw5h4OSe5EMNG7K51KYS02TCTMdVbQCJjpsS0WO04lsNEE5I6Kw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fbky+uxH3Si3+vix+pXe06/b60tZoPDcXnLGdcjPJowQkoDg05jLgJdmDF3y2JLyMjHZPW916DQDEDjb/uwfYWsq+GOGsXQgq19AmTwtVT9dfV9TTjOmlhMwjpj5IYWplxrhWJqvd4LP+nNWAkYtm8nQ/dQrqdrYioNPRfuIG04xBSWuU33D1SCevIe7vSkvwyh5WYY4VpCJExJLe06pSOsM/jv6kC/59PWApByDlAhqvVM2O949ieDHtYCrmHnOEKK4k8IhddFZP/pRlOvSkTHkujE4vYFL91IXPTM0A2DVLcqOpLQAsCm6A01cuzjfkXAt5aEySvlFnFazNl+UuQ==
  • 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: Fri, 01 Nov 2019 11:47:05 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVkKoOXhphkS2O90yDwWUamCgOaQ==
  • Thread-topic: [UNIKRAFT/LIBCXXABI PATCH 1/1] Add config option for thread support

We add a config option to toggle the thread support. This means adding the
source cxa_thread_atexit.cpp and not defining _LIBCXXABI_HAS_NO_THREADS.

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

diff --git a/Config.uk b/Config.uk
index 9e96041..d6e1f00 100644
--- a/Config.uk
+++ b/Config.uk
@@ -1,4 +1,10 @@
 menuconfig LIBCXXABI
     bool "libcxxabi - c++ abi"
-       select LIBUNWIND
+    select LIBUNWIND
     default n
+
+if LIBCXXABI
+    config LIBCXXABI_THREADS
+    bool "Enable threads support"
+    select CXX_THREADS
+endif
diff --git a/Makefile.uk b/Makefile.uk
index 1e658e8..138af91 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -68,7 +68,10 @@ CXXINCLUDES-$(CONFIG_LIBCXXABI) += -I$(LIBCXXABI_SRC)/include
 
################################################################################
 # Global flags
 
################################################################################
+ifndef CONFIG_LIBCXXABI_THREADS
 CONFIG_FLAGS   +=      -D _LIBCXXABI_HAS_NO_THREADS
+endif
+
 LIBCXXABI_CFLAGS-y    +=  $(CONFIG_FLAGS)
 LIBCXXABI_CXXFLAGS-y    +=  $(CONFIG_FLAGS)
 
@@ -97,4 +100,6 @@ LIBCXXABI_SRCS-y += $(LIBCXXABI_SRC)/src/private_typeinfo.cpp
 LIBCXXABI_SRCS-y += $(LIBCXXABI_SRC)/src/cxa_handlers.cpp
 LIBCXXABI_SRCS-y += $(LIBCXXABI_SRC)/src/cxa_default_handlers.cpp
 LIBCXXABI_SRCS-y += $(LIBCXXABI_SRC)/src/cxa_guard.cpp
+ifdef CONFIG_LIBCXXABI_THREADS
 LIBCXXABI_SRCS-y += $(LIBCXXABI_SRC)/src/cxa_thread_atexit.cpp
+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®.