mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
f951de9a3b
commit
bd25f1504b
5 files changed
+10
-16
No files matched your search
@@ -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.*)
|
||||
|
||||
@@ -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.*)
|
||||
|
||||
@@ -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.*)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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); \
|
||||
|
||||