Skip to contentSkip to conversation

xen/public: arch-arm: Use xen_mk_ullong instead of suffixing value with ULL

PATCH In review Julien Grall 3 participants 4 messages Jun 3, 2019 – Jul 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/public: arch-arm: Use xen_mk_ullong instead of suffixing value with ULL

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.

---
 xen/include/public/arch-arm.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
xen/include/public/arch-arm.h +4 -4
index eb424e8286..f550137089 100644
@@ -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
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw

Hi,

Gentle ping.

Cheers,

Quoted 35 lines · Julien Grall

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.

---
  xen/include/public/arch-arm.h | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
xen/include/public/arch-arm.h +4 -4
index eb424e8286..f550137089 100644
@@ -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
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#2 lore raw
In reply to Julien Grall

Looks good to me

Quoted 9 lines

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.

Cheers
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 5 lines · Alexandru Stefan ISAILA

Looks good to me

Quoted 3 lines

There are a few places in include/public/arch-arm.h that are still suffixing immediate with ULL instead of using xen_mk_ullong.

Quoted 8 lines
Quoted 6 lines

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.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel