PERFORCE change 152487 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Tue Nov 4 12:10:29 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=152487
Change 152487 by gonzo at gonzo_jeeves on 2008/11/04 20:10:08
- Add some debugging printf's
Affected files ...
.. //depot/projects/mips2/src/sys/mips/mips/pmap.c#36 edit
Differences ...
==== //depot/projects/mips2/src/sys/mips/mips/pmap.c#36 (text+ko) ====
@@ -107,6 +107,8 @@
#define PMAP_DIAGNOSTIC
#endif
+#undef PMAP_DEBUG
+
#ifndef PMAP_SHPGPERPROC
#define PMAP_SHPGPERPROC 200
#endif
@@ -694,6 +696,9 @@
register pt_entry_t *pte;
pt_entry_t npte, opte;
+#ifdef PMAP_DEBUG
+ printf("pmap_kenter: va: 0x%08x -> pa: 0x%08x\n", va, pa);
+#endif
npte = mips_paddr_to_tlbpfn(pa) | PTE_RW | PTE_V | PTE_G | PTE_W;
if (is_cacheable_mem(pa))
@@ -1801,6 +1806,9 @@
validate:
rw = init_pte_prot(va, m, prot);
+#ifdef PMAP_DEBUG
+ printf("pmap_enter: va: 0x%08x -> pa: 0x%08x\n", va, pa);
+#endif
/*
* Now validate mapping with desired protection/wiring.
*/
More information about the p4-projects
mailing list