@@ -728,7 +728,7 @@ pub fn init_x2apic() {
728728 }
729729}
730730
731- /// Initialize the required _start variables for the next CPU to be booted.
731+ /// Initialize the required `smp::start` variables for the next CPU to be booted.
732732#[ cfg( feature = "smp" ) ]
733733pub fn init_next_processor_variables ( ) {
734734 use alloc:: alloc:: alloc;
@@ -751,7 +751,6 @@ pub fn init_next_processor_variables() {
751751/// This is partly confirmed by <https://wiki.osdev.org/Symmetric_Multiprocessing>
752752#[ cfg( all( target_os = "none" , feature = "smp" ) ) ]
753753pub fn boot_application_processors ( ) {
754- use hermit_entry:: boot_info:: RawBootInfo ;
755754 use x86_64:: structures:: paging:: Translate ;
756755
757756 let smp_boot_code = include_bytes ! ( concat!( core:: env!( "OUT_DIR" ) , "/boot.bin" ) ) ;
@@ -797,11 +796,11 @@ pub fn boot_application_processors() {
797796 // Set entry point
798797 debug ! (
799798 "Set entry point for application processor to {:p}" ,
800- arch:: start:: hermit_entry :: _start as * const ( )
799+ arch:: start:: smp :: start as * const ( )
801800 ) ;
802801 ( SMP_BOOT_CODE_ADDRESS + SMP_BOOT_CODE_OFFSET_ENTRY )
803- . as_mut_ptr :: < unsafe extern "C" fn ( Option < & ' static RawBootInfo > , cpu_id : u32 ) -> !> ( )
804- . write_unaligned ( arch:: start:: hermit_entry :: _start ) ;
802+ . as_mut_ptr :: < unsafe extern "C" fn ( ) -> !> ( )
803+ . write_unaligned ( arch:: start:: smp :: start ) ;
805804 }
806805
807806 // Now wake up each application processor.
0 commit comments