]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/riscv: add section for device information in linker script
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Tue, 15 Oct 2024 12:21:14 +0000 (14:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Oct 2024 12:21:14 +0000 (14:21 +0200)
Introduce a new `.dev.info` section in the RISC-V 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: Jan Beulich <jbeulich@suse.com>
xen/arch/riscv/xen.lds.S

index 558a5a992aab941df44b671e0f00a41d82bf1bda..dffc6ae11913fa52d556ee6639bbbd4abb5f44f9 100644 (file)
@@ -91,6 +91,8 @@ SECTIONS
         CONSTRUCTORS
     } :text
 
+    DT_DEV_INFO                       /* Devicetree based device info */
+
     . = ALIGN(PAGE_SIZE);             /* Init code and data */
     __init_begin = .;
     .init.text : {