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

[Minios-devel] [UNIKRAFT PATCH v4 1/4] Move UK_SWRAND_CTOR_PRIO to uk/swrand.h


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Tue, 4 Feb 2020 14:09:59 +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=PDpG+XjaIQwtjTxuBNMg1OpUUfuy/BjH+2s3ICJEXLc=; b=K45MrF6dQjLegXsomlitvmLwGmEpnQOL4w9N9IEYRiEq+CcNR8eWMFBWbYJHmOAf4brtsIv8fIVJUiwJVFI9GVP6RsRfEylDISehWgATNZpFStCwKR6pnAJx2IQeGg1DavxHb4ibw56jmtcf1dFH8jnfTb5an7jARfh+2XNC039K23bNZNwBIc9htGOlkuzQsKdUkZinTCi6HADJKB6G4KaBWCwnpmOystvY+ptmyJG/L1lYRiPsBJE6oJ6B3pIpqpgpJu8ydlr3dESZbFgS4ByQbg6x17iW57j6tlx5VYPcS/V7sX7ejAIw5T37KPauNi8yPj68iA3ejx+d8ugY2A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KsZatUvZY1+djlzcZ6VRsThtpGrmPOzV2uMg+Og03E9vMmi0Jk8y6UxvxtN0AQ/r6nFf4ctaVONmBeoHx2vOcRkTYFij7WaxM5lZSLGPhcROBTHuuKfhALTtF/+bAN9jVSfYExchYeW7h21wp1yy3XeGDgI9H922gnqGODv/vmuL49ouEw6sW80Vp5RKJRv3Vn7pQ0hwY8PvdzDL/KGfvaz9JNn5P7DyVyhF74eB1BCNCYTaKo8U+PSZp6iaTeJOhQNSbkUtI/wk/ZVD7RVUK5QkBYGzty5tImGn1DHa+/WV6HEk8bZ0BeQFElQ+e6T/aSgxSBM8LlHY8AXnuxbvcw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "sharan.santhanam@xxxxxxxxx" <sharan.santhanam@xxxxxxxxx>
  • Delivery-date: Tue, 04 Feb 2020 14:10:09 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV22TIDgLKhgcM50O3qgxO2q+QRA==
  • Thread-topic: [UNIKRAFT PATCH v4 1/4] Move UK_SWRAND_CTOR_PRIO to uk/swrand.h

We move UK_SWRAND_CTOR_PRIO to uk/swrand.h. This enables other libraries to base
their constructor priority on the existing priority of ukswrand.

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 lib/ukswrand/include/uk/swrand.h | 2 ++
 lib/ukswrand/swrand.c            | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ukswrand/include/uk/swrand.h b/lib/ukswrand/include/uk/swrand.h
index 29be8a9b..69579a1a 100644
--- a/lib/ukswrand/include/uk/swrand.h
+++ b/lib/ukswrand/include/uk/swrand.h
@@ -45,6 +45,8 @@
 extern "C" {
 #endif
 
+#define UK_SWRAND_CTOR_PRIO    1
+
 struct uk_swrand;
 
 extern struct uk_swrand uk_swrand_def;
diff --git a/lib/ukswrand/swrand.c b/lib/ukswrand/swrand.c
index 47b2e60a..51fe4527 100644
--- a/lib/ukswrand/swrand.c
+++ b/lib/ukswrand/swrand.c
@@ -35,8 +35,6 @@
 #include <uk/config.h>
 #include <uk/print.h>
 
-#define UK_SWRAND_CTOR_PRIO    1
-
 __u32 uk_swrandr_gen_seed32(void)
 {
        __u32 val;
-- 
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®.