Skip to content
Snippets Groups Projects
Commit 7047ae13 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

remove dependencies to a mboot section

parent e495cd6e
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,7 @@ static CPU_ONLINE: TicketMutex<u32> = TicketMutex::new(0);
global_asm!(include_str!("start.s"));
/// Kernel header to announce machine features
#[cfg_attr(
all(target_os = "none", not(feature = "newlib")),
link_section = ".data"
)]
#[cfg_attr(all(target_os = "none", feature = "newlib"), link_section = ".mboot")]
#[cfg_attr(target_os = "none", link_section = ".data")]
static mut RAW_BOOT_INFO: Option<&'static RawBootInfo> = None;
static mut BOOT_INFO: Option<BootInfo> = None;
......
......@@ -34,11 +34,7 @@ pub mod systemtime;
mod vga;
/// Kernel header to announce machine features
#[cfg_attr(
all(target_os = "none", not(feature = "newlib")),
link_section = ".data"
)]
#[cfg_attr(all(target_os = "none", feature = "newlib"), link_section = ".mboot")]
#[cfg_attr(target_os = "none", link_section = ".data")]
static mut RAW_BOOT_INFO: Option<&'static RawBootInfo> = None;
static mut BOOT_INFO: Option<BootInfo> = None;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment