File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,6 @@ fn bootloader_main(
144
144
// Extract required information from the ELF file.
145
145
let mut preallocated_space = alloc_stack ! ( [ ProgramHeader64 ; 32 ] ) ;
146
146
let mut segments = FixedVec :: new ( & mut preallocated_space) ;
147
- #[ cfg( feature = "sse" ) ]
148
- {
149
- sse:: enable_sse ( ) ;
150
- }
151
147
let entry_point;
152
148
{
153
149
let kernel_start_ptr = usize_from ( kernel_start. as_u64 ( ) ) as * const u8 ;
@@ -350,8 +346,10 @@ fn bootloader_main(
350
346
mem:: drop ( rec_page_table) ;
351
347
}
352
348
353
- let entry_point = VirtAddr :: new ( entry_point) ;
349
+ #[ cfg( feature = "sse" ) ]
350
+ sse:: enable_sse ( ) ;
354
351
352
+ let entry_point = VirtAddr :: new ( entry_point) ;
355
353
unsafe { context_switch ( boot_info_addr, entry_point, stack_end) } ;
356
354
}
357
355
You can’t perform that action at this time.
0 commit comments