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

Re: [Minios-devel] [UNIKRAFT PATCH 5/9] include: <uk/init.h>: Macros for init classes


  • 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:00:30 +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=8yKvjGdZG3S1o913gnhds8ojnS7HZCEh+DNzqdSx1gE=; b=A0VtUnvq0YAxXvL0oY+f1hQVHuD0eOsp7GEEIiVFOLc4lPRiQIezctathbYBRuEMAjPX0j9MnqP+0baf61+Txov36OVKu/LSoei9fdqNE68WKNuG+ds+5qCzx1rhQSQNvMtCrPGDCWCbM011T9vphu1fF8m2Bld5SPmWYLaSJQ7Oo1sw5Xrb0MrQNeWt0cl/fciCUEM1w3fNB9l7u6XMNCyvMiT0LLJRaeM0Mrr2PwK6bcEZiFkeFjUR/lYFASAcx5YaCYtJpPOsy6bGTRbWExc5W6B/XsrzgX81nfumunaz0iwLD6F2UHIo/0TgbPavGYWLo8wH9tLrtS91q/FeDA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YFPiJG7UrX2yk66S3H/0WfVUo5J2VjXRqzLPA9lbyCfWRWIhri8E69iUK1OzHQv2UKBPX/GqSWQlK/oCswscNBNBibII7POU7Hk9vKz8KXRIthS8YYqt6Kg4reqNduSkHRpf8QR4jyIho1/NrpDV55+DGLoZAvDBxA4rNkjFy7I8gjmqUF3VPv5l3FFiSnnsuRrvXaqr4hnFbTPwHSOZdyeTlWFxK/1GtxaPfn38Ld4CQpVuIHKXou8KmpsBx7EFIortm/Yh4TFVicsF2QA2oaI+lJ0epoEpurguuwFaG3nQBD/kOKQpdRcZMo4KadF9bcT8AOqQvFK6D9uiMgJLBg==
  • 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:00:36 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV1u3/CJzwlqzv5EOzfUl30nH8vqgDb7CA
  • Thread-topic: [UNIKRAFT PATCH 5/9] include: <uk/init.h>: Macros for init classes

Hey Simon, this patch looks great!

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

On 29.01.2020 23:48, Simon Kuenzer wrote:
> Introduces macro constants for the init classes provided with <uk/init.h>.
>
> Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> ---
>   include/uk/init.h | 18 ++++++++++++------
>   1 file changed, 12 insertions(+), 6 deletions(-)
>
> diff --git a/include/uk/init.h b/include/uk/init.h
> index 1f26c504..c815e507 100644
> --- a/include/uk/init.h
> +++ b/include/uk/init.h
> @@ -73,35 +73,41 @@ typedef int (*uk_init_func_t)(void);
>    * component may not be initialized, so it wise to initializes those 
> component
>    * to initialized.
>    */
> +#define UK_INIT_CLASS_EARLY 1
>   #define uk_early_initcall_prio(fn, prio) \
> -     uk_initcall_class_prio(fn, 1, prio)
> +     uk_initcall_class_prio(fn, UK_INIT_CLASS_EARLY, prio)
>   /**
>    * Define a stage for platform initialization. Platform at this point read
>    * all the device and device are initialized.
>    */
> +#define UK_INIT_CLASS_PLAT 2
>   #define uk_plat_initcall_prio(fn, prio) \
> -     uk_initcall_class_prio(fn, 2, prio)
> +     uk_initcall_class_prio(fn, UK_INIT_CLASS_PLAT, prio)
>   /**
>    * Define a stage for performing library initialization. This library
>    * initialization is performed after the platform is completely initialized.
>    */
> +#define UK_INIT_CLASS_LIB 3
>   #define uk_lib_initcall_prio(fn, prio) \
> -     uk_initcall_class_prio(fn, 3, prio)
> +     uk_initcall_class_prio(fn, UK_INIT_CLASS_LIB, prio)
>   /**
>    * Define a stage for filesystem initialization.
>    */
> +#define UK_INIT_CLASS_ROOTFS 4
>   #define uk_rootfs_initcall_prio(fn, prio) \
> -     uk_initcall_class_prio(fn, 4, prio)
> +     uk_initcall_class_prio(fn, UK_INIT_CLASS_ROOTFS, prio)
>   /**
>    * Define a stage for device initialization
>    */
> +#define UK_INIT_CLASS_SYS 5
>   #define uk_sys_initcall_prio(fn, prio) \
> -     uk_initcall_class_prio(fn, 5, prio)
> +     uk_initcall_class_prio(fn, UK_INIT_CLASS_SYS, prio)
>   /**
>    * Define a stage for application pre-initialization
>    */
> +#define UK_INIT_CLASS_LATE 6
>   #define uk_late_initcall_prio(fn, prio) \
> -     uk_initcall_class_prio(fn, 6, prio)
> +     uk_initcall_class_prio(fn, UK_INIT_CLASS_LATE, prio)
>   
>   /**
>    * Similar interface without priority.
_______________________________________________
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®.