diff mbox series

[Xen-devel] xen/public: arch-arm: Use xen_mk_ullong instead of suffixing value with ULL

Message ID 20190603160829.31912-1-julien.grall@arm.com
State New
Headers show
Series [Xen-devel] xen/public: arch-arm: Use xen_mk_ullong instead of suffixing value with ULL | expand

Commit Message

Julien Grall June 3, 2019, 4:08 p.m. UTC
There are a few places in include/public/arch-arm.h that are still
suffixing immediate with ULL instead of using xen_mk_ullong.

The latter allows a consumer to easily tweak the header if ULL is not
supported.

So switch the remaining users of ULL to xen_mk_ullong.

Signed-off-by: Julien Grall <julien.grall@arm.com>
---
 xen/include/public/arch-arm.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Julien Grall June 26, 2019, 10:49 a.m. UTC | #1
Hi,

Gentle ping.

Cheers,

On 03/06/2019 17:08, Julien Grall wrote:
> There are a few places in include/public/arch-arm.h that are still
> suffixing immediate with ULL instead of using xen_mk_ullong.
> 
> The latter allows a consumer to easily tweak the header if ULL is not
> supported.
> 
> So switch the remaining users of ULL to xen_mk_ullong.
> 
> Signed-off-by: Julien Grall <julien.grall@arm.com>
> ---
>   xen/include/public/arch-arm.h | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h
> index eb424e8286..f550137089 100644
> --- a/xen/include/public/arch-arm.h
> +++ b/xen/include/public/arch-arm.h
> @@ -407,12 +407,12 @@ typedef uint64_t xen_callback_t;
>   #define GUEST_GICV3_GICR0_SIZE     xen_mk_ullong(0x01000000)
>   
>   /* ACPI tables physical address */
> -#define GUEST_ACPI_BASE 0x20000000ULL
> -#define GUEST_ACPI_SIZE 0x02000000ULL
> +#define GUEST_ACPI_BASE xen_mk_ullong(0x20000000)
> +#define GUEST_ACPI_SIZE xen_mk_ullong(0x02000000)
>   
>   /* PL011 mappings */
> -#define GUEST_PL011_BASE    0x22000000ULL
> -#define GUEST_PL011_SIZE    0x00001000ULL
> +#define GUEST_PL011_BASE    xen_mk_ullong(0x22000000)
> +#define GUEST_PL011_SIZE    xen_mk_ullong(0x00001000)
>   
>   /*
>    * 16MB == 4096 pages reserved for guest to use as a region to map its
>
Alexandru Stefan ISAILA June 26, 2019, 11:40 a.m. UTC | #2
Looks good to me

> There are a few places in include/public/arch-arm.h that are still

> suffixing immediate with ULL instead of using xen_mk_ullong.

> 

> The latter allows a consumer to easily tweak the header if ULL is not

> supported.

> 

> So switch the remaining users of ULL to xen_mk_ullong.

> 

> Signed-off-by: Julien Grall <julien.grall@arm.com>


Reviewed-by: Alexandru Isaila <aisaila@bitdefender.com>


Cheers
Stefano Stabellini July 29, 2019, 8:42 p.m. UTC | #3
On Wed, 26 Jun 2019, Alexandru Stefan ISAILA wrote:
> Looks good to me
> 
> > There are a few places in include/public/arch-arm.h that are still
> > suffixing immediate with ULL instead of using xen_mk_ullong.
> > 
> > The latter allows a consumer to easily tweak the header if ULL is not
> > supported.
> > 
> > So switch the remaining users of ULL to xen_mk_ullong.
> > 
> > Signed-off-by: Julien Grall <julien.grall@arm.com>
> 
> Reviewed-by: Alexandru Isaila <aisaila@bitdefender.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>
diff mbox series

Patch

diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h
index eb424e8286..f550137089 100644
--- a/xen/include/public/arch-arm.h
+++ b/xen/include/public/arch-arm.h
@@ -407,12 +407,12 @@  typedef uint64_t xen_callback_t;
 #define GUEST_GICV3_GICR0_SIZE     xen_mk_ullong(0x01000000)
 
 /* ACPI tables physical address */
-#define GUEST_ACPI_BASE 0x20000000ULL
-#define GUEST_ACPI_SIZE 0x02000000ULL
+#define GUEST_ACPI_BASE xen_mk_ullong(0x20000000)
+#define GUEST_ACPI_SIZE xen_mk_ullong(0x02000000)
 
 /* PL011 mappings */
-#define GUEST_PL011_BASE    0x22000000ULL
-#define GUEST_PL011_SIZE    0x00001000ULL
+#define GUEST_PL011_BASE    xen_mk_ullong(0x22000000)
+#define GUEST_PL011_SIZE    xen_mk_ullong(0x00001000)
 
 /*
  * 16MB == 4096 pages reserved for guest to use as a region to map its