]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/arm: use {DT,ACPI}_DEV_INFO for device info sections
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Tue, 15 Oct 2024 12:20:43 +0000 (14:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Oct 2024 12:20:43 +0000 (14:20 +0200)
Refactor arm/xen.lds.S by replacing the inline definitions for
device info sections with the newly introduced {DT,ACPI}_DEV_INFO
macros from xen/xen.lds.h.

Change alignment of DT_DEV_INFO and ACPI_DEV_INFO sections from
8 to POINTER_ALIGN as struct acpi_device_desc and struct device_desc
don't have any uint64_t's so it is safe to do that.

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
xen/arch/arm/xen.lds.S

index 0987052f1af323fc374dcbcea94acb2d500f6d4b..5b9abc9a2d8e700e611764d9a935e7525e23646c 100644 (file)
@@ -124,20 +124,10 @@ SECTIONS
       _eplatform = .;
   } :text
 
-  . = ALIGN(8);
-  .dev.info : {
-      _sdevice = .;
-      *(.dev.info)
-      _edevice = .;
-  } :text
+  DT_DEV_INFO
 
 #ifdef CONFIG_ACPI
-  . = ALIGN(8);
-  .adev.info : {
-      _asdevice = .;
-      *(.adev.info)
-      _aedevice = .;
-  } :text
+  ACPI_DEV_INFO
 #endif
 
   . = ALIGN(8);