@@ -29,9 +29,9 @@ mod syscall;
2929mod  tasks; 
3030mod  user; 
3131
32- use  arch :: addr:: { PhysPage ,  VirtPage } ; 
33- use  arch :: multicore:: MultiCore ; 
34- use  arch :: { 
32+ use  polyhal :: addr:: { PhysPage ,  VirtPage } ; 
33+ use  polyhal :: multicore:: MultiCore ; 
34+ use  polyhal :: { 
3535 disable_irq,  enable_irq,  get_mem_areas,  PageAlloc ,  TrapFrame ,  TrapFrameArgs ,  TrapType , 
3636 VIRT_ADDR_START , 
3737} ; 
@@ -61,7 +61,7 @@ impl PageAlloc for PageAllocImpl {
6161 } 
6262} 
6363
64- #[ arch :: arch_interrupt]  
64+ #[ polyhal :: arch_interrupt]  
6565/// Handle kernel interrupt 
6666fn  kernel_interrupt ( cx_ref :  & mut  TrapFrame ,  trap_type :  TrapType )  { 
6767 match  trap_type { 
@@ -135,7 +135,7 @@ fn kernel_interrupt(cx_ref: &mut TrapFrame, trap_type: TrapType) {
135135} 
136136
137137/// The kernel entry 
138- #[ arch :: arch_entry]  
138+ #[ polyhal :: arch_entry]  
139139fn  main ( hart_id :  usize )  { 
140140 disable_irq ( ) ; 
141141 if  hart_id == 0  { 
@@ -152,7 +152,7 @@ fn main(hart_id: usize) {
152152 // initialize logging module 
153153 logging:: init ( option_env ! ( "LOG" ) ) ; 
154154
155-  arch :: init ( & PageAllocImpl ) ; 
155+  polyhal :: init ( & PageAllocImpl ) ; 
156156 get_mem_areas ( ) . into_iter ( ) . for_each ( |( start,  size) | { 
157157 frame_allocator:: add_frame_map ( start,  start + size) ; 
158158 } ) ; 
@@ -166,7 +166,7 @@ fn main(hart_id: usize) {
166166
167167 devices:: prepare_drivers ( ) ; 
168168
169-  if  let  Some ( fdt)  = arch :: get_fdt ( )  { 
169+  if  let  Some ( fdt)  = polyhal :: get_fdt ( )  { 
170170 for  node in  fdt. all_nodes ( )  { 
171171 devices:: try_to_add_device ( & node) ; 
172172 } 
0 commit comments