File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ pub fn boot_processor_init() {
8181 crate :: mm:: init ( ) ;
8282 crate :: mm:: print_information ( ) ;
8383 CoreLocal :: get ( ) . add_irq_counter ( ) ;
84- env:: init ( ) ;
8584 interrupts:: init ( ) ;
8685 processor:: detect_frequency ( ) ;
8786 crate :: logging:: KERNEL_LOGGER . set_time ( true ) ;
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ pub fn boot_processor_init() {
9999 devicetree:: init ( ) ;
100100 crate :: mm:: init ( ) ;
101101 crate :: mm:: print_information ( ) ;
102- env:: init ( ) ;
103102 interrupts:: install ( ) ;
104103
105104 finish_processor_init ( ) ;
Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ pub fn boot_processor_init() {
9595 crate :: mm:: init ( ) ;
9696 crate :: mm:: print_information ( ) ;
9797 CoreLocal :: get ( ) . add_irq_counter ( ) ;
98- env:: init ( ) ;
9998 gdt:: add_current_core ( ) ;
10099 interrupts:: load_idt ( ) ;
101100 pic:: init ( ) ;
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ fn boot_processor_main() -> ! {
234234 // Initialize the kernel and hardware.
235235 mm:: claim_initial_heap ( ) ;
236236 hermit_sync:: Lazy :: force ( & console:: CONSOLE ) ;
237+ env:: init ( ) ;
237238 unsafe {
238239 logging:: init ( ) ;
239240 }
Original file line number Diff line number Diff line change @@ -101,13 +101,13 @@ impl fmt::Display for ColorLevel {
101101}
102102
103103fn no_color ( ) -> bool {
104- option_env ! ( "NO_COLOR" ) . is_some_and ( |val| !val. is_empty ( ) )
104+ hermit_var ! ( "NO_COLOR" ) . is_some_and ( |val| !val. is_empty ( ) )
105105}
106106
107107pub unsafe fn init ( ) {
108108 log:: set_logger ( & KERNEL_LOGGER ) . expect ( "Can't initialize logger" ) ;
109109 // Determines LevelFilter at compile time
110- let log_level: Option < & ' static str > = option_env ! ( "HERMIT_LOG_LEVEL_FILTER" ) ;
110+ let log_level = hermit_var ! ( "HERMIT_LOG_LEVEL_FILTER" ) ;
111111 let mut max_level = LevelFilter :: Info ;
112112
113113 if let Some ( log_level) = log_level {
You can’t perform that action at this time.
0 commit comments