xen: introduce header file with section related symbols

Start by declaring the beginning and end of the init section.

No functional change intended.

Requested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2024-04-23 14:12:04 +02:00
1 parent 70d46b51e2
commit f82c43a384
3 files changed
+19 -4

No files matched your search

+1 -2
View File
@@ -7,6 +7,7 @@
#include <xen/init.h>
#include <xen/libfdt/libfdt.h>
#include <xen/sections.h>
#include <xen/sizes.h>
#include <xen/vmap.h>
@@ -62,8 +63,6 @@ vaddr_t directmap_virt_start __read_mostly;
unsigned long directmap_base_pdx __read_mostly;
#endif
extern char __init_begin[], __init_end[];
/* Checking VA memory layout alignment. */
static void __init __maybe_unused build_assertions(void)
{
+1 -2
View File
@@ -5,6 +5,7 @@
#include <xen/param.h>
#include <xen/sched.h>
#include <xen/domain.h>
#include <xen/sections.h>
#include <xen/serial.h>
#include <xen/softirq.h>
#include <xen/acpi.h>
@@ -309,8 +310,6 @@ void __init discard_initial_images(void)
initial_images = NULL;
}
extern unsigned char __init_begin[], __init_end[];
static void __init init_idle_domain(void)
{
scheduler_init();
+17
View File
@@ -0,0 +1,17 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __XEN_SECTIONS_H__
#define __XEN_SECTIONS_H__
/* SAF-0-safe */
extern char __init_begin[], __init_end[];
#endif /* !__XEN_SECTIONS_H__ */
/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
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.