PERFORCE change 30230 for review
Marcel Moolenaar
marcel at FreeBSD.org
Wed Apr 30 19:04:34 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30230
Change 30230 by marcel at marcel_nfs on 2003/04/30 19:03:36
Diff reduction: Remove EPC related code from this branch.
Affected files ...
.. //depot/projects/ia64/sys/ia64/ia64/machdep.c#65 edit
Differences ...
==== //depot/projects/ia64/sys/ia64/ia64/machdep.c#65 (text+ko) ====
@@ -103,8 +103,6 @@
extern u_int64_t kernel_text[], _end[];
-extern u_int64_t ia64_gateway_page[];
-
FPSWA_INTERFACE *fpswa_interface;
u_int64_t ia64_pal_base;
@@ -329,39 +327,6 @@
__asm __volatile("srlz.d");
}
-void
-map_gateway_page(void)
-{
- struct ia64_pte pte;
- u_int64_t psr;
-
- bzero(&pte, sizeof(pte));
- pte.pte_p = 1;
- pte.pte_ma = PTE_MA_WB;
- pte.pte_a = 1;
- pte.pte_d = 1;
- pte.pte_pl = PTE_PL_KERN;
- pte.pte_ar = PTE_AR_X_RX;
- pte.pte_ppn = IA64_RR_MASK((u_int64_t)ia64_gateway_page) >> 12;
-
- __asm __volatile("ptr.d %0,%1; ptr.i %0,%1" ::
- "r"(VM_MAX_ADDRESS), "r"(PAGE_SHIFT << 2));
-
- __asm __volatile("mov %0=psr" : "=r"(psr));
- __asm __volatile("rsm psr.ic|psr.i");
- __asm __volatile("srlz.i");
- __asm __volatile("mov cr.ifa=%0" :: "r"(VM_MAX_ADDRESS));
- __asm __volatile("mov cr.itir=%0" :: "r"(PAGE_SHIFT << 2));
- __asm __volatile("itr.d dtr[%0]=%1" :: "r"(3), "r"(*(u_int64_t*)&pte));
- __asm __volatile("srlz.d"); /* XXX not needed. */
- __asm __volatile("itr.i itr[%0]=%1" :: "r"(3), "r"(*(u_int64_t*)&pte));
- __asm __volatile("mov psr.l=%0" :: "r" (psr));
- __asm __volatile("srlz.i");
-
- /* Expose the mapping to userland in ar.k7 */
- ia64_set_k7(VM_MAX_ADDRESS);
-}
-
static void
calculate_frequencies(void)
{
More information about the p4-projects
mailing list