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

Re: [Minios-devel] [UNIKRAFT PATCH v3 9/9] plat/*: 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: Fri, 31 Jan 2020 13:50:49 +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=Yaslrw+Waage0v7JILJYsKMsKDTYYaY9YEabWx50KxI=; b=S7AOzynFMtADsZtEBAReWk9QoDdxz37eEFkp/Mpg0xvO8hhTEAYMLl0JBTxCCqTX0nM07v3gW1QKtl4KocGW//+gdfl5IRJ/wGOTxhXRxCI6savkWqnAANQRr/f4/OLCcKIRPyuMk7ugFGWnX/e/mFt+yJXVMkB8Xrp/qBAe94sWhZf9Iu7p6RHNjcPZEnamaFvlgxXSMHbkTzbecLpMdFYEKMJk5MLOg8iSeFJ0i4aeokFQN/cFLUQeLUAw1L3aWnSqjWTRf2Jg14JvkYw83FE4+m+Dc58DdZ6vP7s++9LXwUIxMX3Mqf6/D9x+YOIVT1IXfaGYPEnqkSHoO0S3mw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hEvsEEouuR60yAHoU/ufXjbRnJIuZmn+B4m25SQH88VixemHZyWYyT0PDhvinIG17nqt1HvilGBX834VdskAGeGkvgTOUL4TLJCHuCeihqzIjLvxYZ5ixZlWv1AO5eF7XnRP/JfktplW0UXkhaol6S+gPFVjiJp1oa32GOgfywKegRQq1P7QHYmEUe5NLKFBi1/PzzJ3C5WCTsSb3ebZRBc6kPnB0MOWFb6lUucPZsDCFfJyXBstgMUowAoo12EaIZqlDXIv3G7MXi7zuQnrfVx/hq4jqtnM1FDKPGUfvR4J1xSbHZdo1y7MTvZ0ZNo9XP+x0/FoHTsGqayY7kgXhQ==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Delivery-date: Fri, 31 Jan 2020 13:50:55 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV2DzKQARDcaoVBU2ZeBtfsC65gagEymgA
  • Thread-topic: [UNIKRAFT PATCH v3 9/9] plat/*: Update to <uk/ctors.h> changes

Thanks for the path Simon!

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

On 31.01.2020 15:45, Simon Kuenzer wrote:
> Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
> ---
>   plat/common/include/pci/pci_bus.h        | 4 ++--
>   plat/drivers/include/virtio/virtio_bus.h | 5 +++--
>   plat/xen/include/xenbus/xenbus.h         | 4 ++--
>   3 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/plat/common/include/pci/pci_bus.h 
> b/plat/common/include/pci/pci_bus.h
> index c8dbddae..db406a1b 100644
> --- a/plat/common/include/pci/pci_bus.h
> +++ b/plat/common/include/pci/pci_bus.h
> @@ -160,8 +160,8 @@ struct pci_device {
>   
>   #define _PCI_REGFNNAME(x, y)      x##y
>   
> -#define PCI_REGISTER_CTOR(CTOR)                              \
> -             UK_CTOR_FUNC(1, CTOR)
> +#define PCI_REGISTER_CTOR(ctor)                              \
> +     UK_CTOR_PRIO(ctor, UK_PRIO_AFTER(UK_BUS_REGISTER_PRIO))
>   
>   #define _PCI_REGISTER_DRIVER(libname, b)                            \
>       static void                                             \
> diff --git a/plat/drivers/include/virtio/virtio_bus.h 
> b/plat/drivers/include/virtio/virtio_bus.h
> index 72a82983..fcea5d63 100644
> --- a/plat/drivers/include/virtio/virtio_bus.h
> +++ b/plat/drivers/include/virtio/virtio_bus.h
> @@ -41,6 +41,7 @@
>   #include <uk/arch/types.h>
>   #include <uk/arch/lcpu.h>
>   #include <uk/alloc.h>
> +#include <uk/bus.h>
>   #include <virtio/virtio_config.h>
>   #include <virtio/virtqueue.h>
>   #include <uk/ctors.h>
> @@ -335,8 +336,8 @@ static inline void virtio_dev_drv_up(struct virtio_dev 
> *vdev)
>   
>   #define _VIRTIO_BUS_REGFNAME(x, y)       x##y
>   
> -#define _VIRTIO_REGISTER_CTOR(CTOR)  \
> -     UK_CTOR_FUNC(1, CTOR)
> +#define _VIRTIO_REGISTER_CTOR(ctor)  \
> +     UK_CTOR_PRIO(ctor, UK_PRIO_AFTER(UK_BUS_REGISTER_PRIO))
>   
>   #define _VIRTIO_BUS_REGISTER_DRIVER(libname, b)                             
> \
>       static void                                                     \
> diff --git a/plat/xen/include/xenbus/xenbus.h 
> b/plat/xen/include/xenbus/xenbus.h
> index a7872392..9fc942bc 100644
> --- a/plat/xen/include/xenbus/xenbus.h
> +++ b/plat/xen/include/xenbus/xenbus.h
> @@ -78,8 +78,8 @@ UK_TAILQ_HEAD(xenbus_driver_list, struct xenbus_driver);
>   
>   #define _XENBUS_REGFNNAME(x, y)      x##y
>   
> -#define _XENBUS_REGISTER_CTOR(CTOR)  \
> -     UK_CTOR_FUNC(1, CTOR)
> +#define _XENBUS_REGISTER_CTOR(ctor)  \
> +     UK_CTOR_PRIO(ctor, UK_PRIO_AFTER(UK_BUS_REGISTER_PRIO))
>   
>   #define _XENBUS_REGISTER_DRIVER(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®.