]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/ppc: add section for device information in linker script
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Tue, 15 Oct 2024 12:21:04 +0000 (14:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Oct 2024 12:21:04 +0000 (14:21 +0200)
Introduce a new `.dev.info` section in the PPC linker script to
handle device-specific information. This section is required by
common code (common/device.c: device_init(), device_get_class() ).
This section is aligned to `POINTER_ALIGN`, with `_sdevice` and `_edevice`
marking the start and end of the section, respectively.

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Shawn Anastasio <sanastasio@raptorengineering.com>
xen/arch/ppc/xen.lds.S

index 30b4a6ced85666410c6e51ac705508c2fcc96a2a..3f2a7676ec96f6d773825f2d3ecb90ab2f604e9f 100644 (file)
@@ -96,6 +96,8 @@ SECTIONS
         CONSTRUCTORS
     } :text
 
+    DT_DEV_INFO                       /* Devicetree based device info */
+
     . = ALIGN(PAGE_SIZE);             /* Init code and data */
     __init_begin = .;
     DECL_SECTION(.init.text) {