xen: Centralize scheduler linker definition

Use a define to centralize the common scheduler data in the per-arch
linker scripts.  This is in preparation for marking it KEEP().  While
moving, switch to using POINTER_ALIGN.

Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jason Andryuk authored and Jan Beulich committed 2025-12-11 09:49:35 +01:00
1 parent f951de9a3b
commit bd25f1504b
5 files changed
+10 -16

No files matched your search

+1 -4
View File
@@ -92,11 +92,8 @@ SECTIONS
. = ALIGN(SMP_CACHE_BYTES);
.data : { /* Data */
*(.data.page_aligned)
. = ALIGN(8);
__start_schedulers_array = .;
*(.data.schedulers)
__end_schedulers_array = .;
SCHEDULER_ARRAY
HYPFS_PARAM
*(.data .data.*)
+1 -4
View File
@@ -83,11 +83,8 @@ SECTIONS
. = ALIGN(PAGE_SIZE);
DECL_SECTION(.data) { /* Data */
*(.data.page_aligned)
. = ALIGN(8);
__start_schedulers_array = .;
*(.data.schedulers)
__end_schedulers_array = .;
SCHEDULER_ARRAY
HYPFS_PARAM
*(.data .data.*)
+1 -4
View File
@@ -78,11 +78,8 @@ SECTIONS
. = ALIGN(PAGE_SIZE);
.data : { /* Data */
*(.data.page_aligned)
. = ALIGN(8);
__start_schedulers_array = .;
*(.data.schedulers)
__end_schedulers_array = .;
SCHEDULER_ARRAY
HYPFS_PARAM
*(.data .data.*)
+1 -4
View File
@@ -309,11 +309,8 @@ SECTIONS
. = ALIGN(SMP_CACHE_BYTES);
DECL_SECTION(.data.read_mostly) {
*(.data.read_mostly)
. = ALIGN(8);
__start_schedulers_array = .;
*(.data.schedulers)
__end_schedulers_array = .;
SCHEDULER_ARRAY
HYPFS_PARAM
} PHDR(text)
+6
View File
@@ -173,6 +173,12 @@
_edevice = .; \
} :text
#define SCHEDULER_ARRAY \
. = ALIGN(POINTER_ALIGN); \
__start_schedulers_array = .; \
*(.data.schedulers) \
__end_schedulers_array = .;
#ifdef CONFIG_HYPFS
#define HYPFS_PARAM \
. = ALIGN(POINTER_ALIGN); \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.