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

Re: [Minios-devel] [UNIKRAFT PATCH 6/9] lib/ukbus: Update to <uk/ctors.h> changes


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Thu, 30 Jan 2020 17:07:50 +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=cBv5pL///5Mk26gXOr/UeQXgDnuf3vl8t+ZOJaeYgyI=; b=NwA3gTN+cWPHx1Rmp6WI1EAt87KqHF7pyyCi4R86oRqT3Tdn7/vbMP30d9FePY/3hpGK07Mliy9KmTPkmM285iWuN7nVSisOchBgUgGooT+zrh6ataFlavDhQ9Api0PqNk2lT+68VUIwtubZCXNmeSOB8MZeq8J/ujMxD3XprBO59kglQMyTKVB+mWyiUu1DIi7WLYCq6rMyIGJyhZgVNWCVu84tQAz5vxUU3u92a8YO4ofQp1qZppzQ9ekHQsuuuRuDmhuEBAhQNEeQDf1So7MP5HaeQmmzthQ/ZFTfeyC5q54XbRTBv35z89NxiuHh2rfF5dBv4QvNI0Uo0auAlg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MKv88TWi8duJ1x/eASKySUzvVBNCJoJIDJ0/yecNdFM2KAByWKh+PZHTjuUWrW/riC1hVWioPc8Ax4xpgXRUVs4z9nW6MVSI37Ifv7RIc/3gQu/C0rmns6X/zZmuPPgLf8ODOROUN9QCjM2VloFJxLWiYir2Qp3S3rc4OgeoDQkrl7/YmSko1jDClW/BE/6xm3hF7YqxMAyGnwf2y6FB/uWg5jRKPaOFL3CCv+D+EMcfVjoj/ePstB1/CgG9kA0ToBEE1CmAbytE74BePmmhzOug+J0qi5+yfFLEojvlGVop/mlXqhI4UW2Un1w+vmQMNFVl/dy3aCfk4GMxj3+fRA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: Felipe Huici <felipe.huici@xxxxxxxxx>
  • Delivery-date: Thu, 30 Jan 2020 17:07:56 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV1u4BfEjy1hsgm06RqP1TFBPRk6gDcb2A
  • Thread-topic: [UNIKRAFT PATCH 6/9] lib/ukbus: Update to <uk/ctors.h> changes

Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>

On 29.01.2020 23:48, Simon Kuenzer wrote:
> Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> ---
>   lib/ukbus/bus.c            | 2 +-
>   lib/ukbus/include/uk/bus.h | 9 ++++++---
>   2 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/lib/ukbus/bus.c b/lib/ukbus/bus.c
> index 45de2445..1d63f4dc 100644
> --- a/lib/ukbus/bus.c
> +++ b/lib/ukbus/bus.c
> @@ -139,4 +139,4 @@ static int uk_bus_lib_init(void)
>       uk_bus_probe_all();
>       return 0;
>   }
> -uk_early_initcall_prio(uk_bus_lib_init, 0);
> +uk_initcall_class_prio(uk_bus_lib_init, UK_BUS_INIT_CLASS, UK_BUS_INIT_PRIO);
> diff --git a/lib/ukbus/include/uk/bus.h b/lib/ukbus/include/uk/bus.h
> index bff94bbd..fcb68421 100644
> --- a/lib/ukbus/include/uk/bus.h
> +++ b/lib/ukbus/include/uk/bus.h
> @@ -44,6 +44,10 @@
>   extern "C" {
>   #endif
>   
> +#define UK_BUS_INIT_CLASS UK_INIT_CLASS_EARLY
> +#define UK_BUS_INIT_PRIO  0
> +#define UK_BUS_REGISTER_PRIO 0
> +
>   struct uk_bus;
>   extern struct uk_list_head uk_bus_list;
>   
> @@ -70,9 +74,8 @@ void _uk_bus_unregister(struct uk_bus *b);
>   
>   #define _UK_BUS_REGFNNAME(x, y)      x##y
>   
> -#define _UK_BUS_REGISTER_CTOR(CTOR)  \
> -     UK_CTOR_FUNC(0, CTOR)
> -
> +#define _UK_BUS_REGISTER_CTOR(ctor)  \
> +     UK_CTOR_PRIO(ctor, UK_BUS_REGISTER_PRIO)
>   
>   #define _UK_BUS_REGISTER(libname, b)                                \
>       static void                                             \
_______________________________________________
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®.