@@ -764,7 +764,7 @@ void mem_color_hypervisor(const paddr_t load_addr, struct mem_region* root_regio
764764 * the new CPU region is created, cleaned, prepared and finally mapped.
765765 */
766766 cpu_new = copy_space ((void * )BAO_CPU_BASE , sizeof (struct cpu ), & p_cpu );
767- as_init (& cpu_new -> as , AS_HYP_CPY , HYP_ASID , NULL , colors );
767+ as_init (& cpu_new -> as , AS_HYP_CPY , NULL , colors );
768768 va = mem_alloc_vpage (& cpu_new -> as , SEC_HYP_PRIVATE , (vaddr_t )BAO_CPU_BASE ,
769769 NUM_PAGES (sizeof (struct cpu )));
770770 if (va != (vaddr_t )BAO_CPU_BASE ) {
@@ -860,7 +860,7 @@ void mem_color_hypervisor(const paddr_t load_addr, struct mem_region* root_regio
860860 while (shared_pte != 0 ) { }
861861 }
862862
863- as_init (& cpu ()-> as , AS_HYP , HYP_ASID , (void * )v_root_pt_addr , colors );
863+ as_init (& cpu ()-> as , AS_HYP , (void * )v_root_pt_addr , colors );
864864
865865 /*
866866 * Clear the old region that have been copied.
@@ -916,10 +916,8 @@ static unsigned long as_id_alloc(struct addr_space* as)
916916 return ret ;
917917}
918918
919- void as_init (struct addr_space * as , enum AS_TYPE type , asid_t id , pte_t * root_pt , colormap_t colors )
919+ void as_init (struct addr_space * as , enum AS_TYPE type , pte_t * root_pt , colormap_t colors )
920920{
921- UNUSED_ARG (id );
922-
923921 as -> type = type ;
924922 as -> pt .dscr = type == AS_HYP || type == AS_HYP_CPY ? hyp_pt_dscr : vm_pt_dscr ;
925923 as -> id = as_id_alloc (as );
@@ -940,7 +938,7 @@ void as_init(struct addr_space* as, enum AS_TYPE type, asid_t id, pte_t* root_pt
940938void mem_prot_init (void )
941939{
942940 pte_t * root_pt = (pte_t * )ALIGN (((vaddr_t )cpu ()) + sizeof (struct cpu ), PAGE_SIZE );
943- as_init (& cpu ()-> as , AS_HYP , HYP_ASID , root_pt , config .hyp .colors );
941+ as_init (& cpu ()-> as , AS_HYP , root_pt , config .hyp .colors );
944942}
945943
946944vaddr_t mem_alloc_map (struct addr_space * as , enum AS_SEC section , struct ppages * page , vaddr_t at ,
0 commit comments