File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
platforms/axplat-aarch64-dyn/src Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ impl InitIf for InitIfImpl {
32
32
/// * Current monotonic time and wall time can be obtained.
33
33
fn init_early ( cpu_id : usize , arg : usize ) {
34
34
axcpu:: init:: init_trap ( ) ;
35
+ crate :: mem:: setup ( ) ;
35
36
console:: setup_early ( ) ;
36
37
}
37
38
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ mod config {
18
18
axconfig_macros:: include_configs!( path_env = "AX_CONFIG_PATH" , fallback = "axconfig.toml" ) ;
19
19
}
20
20
21
+ // Use `.data` section to prevent being cleaned by `clean_bss`.
22
+ #[ unsafe( link_section = ".data" ) ]
21
23
static BOOT_INFO : Once < BootInfo > = Once :: new ( ) ;
22
24
23
25
#[ pie_boot:: entry]
24
26
fn main ( args : & BootInfo ) -> ! {
25
27
BOOT_INFO . call_once ( move || args. clone ( ) ) ;
26
28
27
- mem:: setup ( ) ;
28
-
29
29
axplat:: call_main (
30
30
args. cpu_id ,
31
31
args. fdt . map ( |p| p. as_ptr ( ) as usize ) . unwrap_or_default ( ) ,
You can’t perform that action at this time.
0 commit comments