@@ -257,7 +257,7 @@ BOOT_CODE void map_kernel_window(void)
257257 /* map log buffer page table. PTEs to be filled by user later by calling seL4_BenchmarkSetLogBuffer() */
258258 armKSGlobalPD [idx ] =
259259 pde_pde_coarse_new (
260- addrFromPPtr (armKSGlobalLogPT ), /* address */
260+ addrFromKPPtr (armKSGlobalLogPT ), /* address */
261261 true, /* P */
262262 0 /* Domain */
263263 );
@@ -271,7 +271,7 @@ BOOT_CODE void map_kernel_window(void)
271271 /* map page table covering last 1M of virtual address space to page directory */
272272 armKSGlobalPD [idx ] =
273273 pde_pde_coarse_new (
274- addrFromPPtr (armKSGlobalPT ), /* address */
274+ addrFromKPPtr (armKSGlobalPT ), /* address */
275275 true, /* P */
276276 0 /* Domain */
277277 );
@@ -281,7 +281,7 @@ BOOT_CODE void map_kernel_window(void)
281281
282282 /* map vector table */
283283 map_kernel_frame (
284- addrFromPPtr (arm_vector_table ),
284+ addrFromKPPtr (arm_vector_table ),
285285 PPTR_VECTOR_TABLE ,
286286 VMKernelOnly ,
287287 vm_attributes_new (
@@ -294,7 +294,7 @@ BOOT_CODE void map_kernel_window(void)
294294#ifdef CONFIG_KERNEL_GLOBALS_FRAME
295295 /* map globals frame */
296296 map_kernel_frame (
297- addrFromPPtr (armKSGlobalsFrame ),
297+ addrFromKPPtr (armKSGlobalsFrame ),
298298 seL4_GlobalsFrame ,
299299 VMReadOnly ,
300300 vm_attributes_new (
@@ -322,7 +322,7 @@ BOOT_CODE void map_kernel_window(void)
322322 pde = pdeS1_pdeS1_invalid_new ();
323323 armHSGlobalPGD [idx ] = pde ;
324324 }
325- pde = pdeS1_pdeS1_coarse_new (0 , 0 , 0 , 0 , addrFromPPtr (armHSGlobalPD ));
325+ pde = pdeS1_pdeS1_coarse_new (0 , 0 , 0 , 0 , addrFromKPPtr (armHSGlobalPD ));
326326 armHSGlobalPGD [3 ] = pde ;
327327
328328 /* Initialise PMD */
@@ -351,7 +351,7 @@ BOOT_CODE void map_kernel_window(void)
351351 phys += BIT (PT_INDEX_BITS + PAGE_BITS );
352352 }
353353 /* map page table covering last 2M of virtual address space */
354- pde = pdeS1_pdeS1_coarse_new (0 , 0 , 0 , 0 , addrFromPPtr (armHSGlobalPT ));
354+ pde = pdeS1_pdeS1_coarse_new (0 , 0 , 0 , 0 , addrFromKPPtr (armHSGlobalPT ));
355355 armHSGlobalPD [idx ] = pde ;
356356
357357 /* now start initialising the page table */
@@ -375,7 +375,7 @@ BOOT_CODE void map_kernel_window(void)
375375 }
376376 /* map vector table */
377377 map_kernel_frame (
378- addrFromPPtr (arm_vector_table ),
378+ addrFromKPPtr (arm_vector_table ),
379379 PPTR_VECTOR_TABLE ,
380380 VMKernelOnly ,
381381 vm_attributes_new (
@@ -388,7 +388,7 @@ BOOT_CODE void map_kernel_window(void)
388388#ifdef CONFIG_KERNEL_GLOBALS_FRAME
389389 /* map globals frame */
390390 map_kernel_frame (
391- addrFromPPtr (armKSGlobalsFrame ),
391+ addrFromKPPtr (armKSGlobalsFrame ),
392392 seL4_GlobalsFrame ,
393393 VMReadOnly ,
394394 vm_attributes_new (
@@ -401,7 +401,7 @@ BOOT_CODE void map_kernel_window(void)
401401 pteS2 = pte_pte_small_new (
402402 1 , /* Not Executeable */
403403 0 , /* Not contiguous */
404- addrFromPPtr (armKSGlobalsFrame ),
404+ addrFromKPPtr (armKSGlobalsFrame ),
405405 1 , /* AF -- always set */
406406 0 , /* Not shared */
407407 HAPFromVMRights (VMReadOnly ),
@@ -589,7 +589,7 @@ BOOT_CODE void activate_global_pd(void)
589589 that everything we've written (particularly the kernel page tables)
590590 is committed. */
591591 cleanInvalidateL1Caches ();
592- setCurrentPD (addrFromPPtr (armKSGlobalPD ));
592+ setCurrentPD (addrFromKPPtr (armKSGlobalPD ));
593593 invalidateLocalTLB ();
594594 lockTLBEntry (PPTR_BASE );
595595 lockTLBEntry (PPTR_VECTOR_TABLE );
@@ -606,7 +606,7 @@ BOOT_CODE void activate_global_pd(void)
606606 cleanInvalidateL1Caches ();
607607 /* Setup the memory attributes: We use 2 indicies (cachable/non-cachable) */
608608 setHMAIR ((ATTRINDX_NONCACHEABLE << 0 ) | (ATTRINDX_CACHEABLE << 8 ), 0 );
609- setCurrentHypPD (addrFromPPtr (armHSGlobalPGD ));
609+ setCurrentHypPD (addrFromKPPtr (armHSGlobalPGD ));
610610 invalidateHypTLB ();
611611#if 0 /* Can't lock entries on A15 */
612612 lockTLBEntry (PPTR_BASE );
@@ -1050,9 +1050,9 @@ void setVMRoot(tcb_t *tcb)
10501050 if (cap_get_capType (threadRoot ) != cap_page_directory_cap ||
10511051 !cap_page_directory_cap_get_capPDIsMapped (threadRoot )) {
10521052#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT
1053- setCurrentPD (addrFromPPtr (armUSGlobalPD ));
1053+ setCurrentPD (addrFromKPPtr (armUSGlobalPD ));
10541054#else
1055- setCurrentPD (addrFromPPtr (armKSGlobalPD ));
1055+ setCurrentPD (addrFromKPPtr (armKSGlobalPD ));
10561056#endif
10571057 return ;
10581058 }
@@ -1062,9 +1062,9 @@ void setVMRoot(tcb_t *tcb)
10621062 find_ret = findPDForASID (asid );
10631063 if (unlikely (find_ret .status != EXCEPTION_NONE || find_ret .pd != pd )) {
10641064#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT
1065- setCurrentPD (addrFromPPtr (armUSGlobalPD ));
1065+ setCurrentPD (addrFromKPPtr (armUSGlobalPD ));
10661066#else
1067- setCurrentPD (addrFromPPtr (armKSGlobalPD ));
1067+ setCurrentPD (addrFromKPPtr (armKSGlobalPD ));
10681068#endif
10691069 return ;
10701070 }
@@ -1248,7 +1248,7 @@ void copyGlobalMappings(pde_t *newPD)
12481248 /* Kernel and user MMUs are completely independent, however,
12491249 * we still need to share the globals page. */
12501250 pde_t pde ;
1251- pde = pde_pde_coarse_new (addrFromPPtr (armUSGlobalPT ));
1251+ pde = pde_pde_coarse_new (addrFromKPPtr (armUSGlobalPT ));
12521252 newPD [BIT (PD_INDEX_BITS ) - 1 ] = pde ;
12531253#endif /* CONFIG_KERNEL_GLOBALS_FRAME */
12541254#endif
@@ -2765,7 +2765,7 @@ exception_t benchmark_arch_map_logBuffer(word_t frame_cptr)
27652765 0 /* executable */
27662766 );
27672767
2768- cleanByVA_PoU ((vptr_t )& armKSGlobalLogPT [idx ], pptr_to_paddr (& armKSGlobalLogPT [idx ]));
2768+ cleanByVA_PoU ((vptr_t )& armKSGlobalLogPT [idx ], addrFromKPPtr (& armKSGlobalLogPT [idx ]));
27692769 invalidateTranslationSingle (KS_LOG_PPTR + (idx * BIT (seL4_PageBits )));
27702770 }
27712771
0 commit comments