From: Oleksii Kurochko Date: Tue, 15 Oct 2024 12:21:14 +0000 (+0200) Subject: xen/riscv: add section for device information in linker script X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=af2a1339c4bd9dcde980beeed0e2f5b3739522fd;p=people%2Faperard%2Fxen-unstable.git xen/riscv: add section for device information in linker script 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 Acked-by: Jan Beulich --- diff --git a/xen/arch/riscv/xen.lds.S b/xen/arch/riscv/xen.lds.S index 558a5a992a..dffc6ae119 100644 --- a/xen/arch/riscv/xen.lds.S +++ b/xen/arch/riscv/xen.lds.S @@ -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 : {